Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
액세스 토큰의 유효 기간을 4일로 설정하는 것은 보안상 위험이 클 수 있습니다. 토큰이 탈취될 경우, 공격자가 4일이라는 긴 시간 동안 사용자 계정에 접근할 수 있게 됩니다.
일반적으로 액세스 토큰은 수명 주기를 짧게(예: 15분 ~ 1시간) 가져가고, 리프레시 토큰을 사용하여 새로운 액세스 토큰을 발급받는 '토큰 리프레시' 방식을 사용합니다. 이렇게 하면 액세스 토큰이 탈취되더라도 피해를 최소화할 수 있습니다.
로그인 유지 기능은 리프레시 토큰을 통해 구현하고, 액세스 토큰의 유효 기간은 원래대로 1시간으로 되돌리거나 더 짧게 설정하는 것을 강력히 권장합니다.