-
Notifications
You must be signed in to change notification settings - Fork 0
feat(User,Token): 리프레시 토큰 중복 저장 로직 수정 #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
The head ref may contain hidden characters: "feature/#69-\uB9AC\uD504\uB808\uC2DC\uD1A0\uD070\uC911\uBCF5\uC800\uC7A5\uB85C\uC9C1\uC218\uC815"
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
💡 Verification agent
🧩 Analysis chain
Token 엔티티의 updateRefreshToken 메서드 존재 여부를 확인하세요.
코드에서
token.updateRefreshToken(newRefreshToken, LocalDateTime.now().plusDays(30))를 호출하고 있는데, Token 엔티티에 해당 메서드가 존재하는지 확인이 필요합니다.다음 스크립트를 실행하여 Token 엔티티의 updateRefreshToken 메서드를 확인하세요:
🏁 Script executed:
Length of output: 90
다른 방식으로 메서드 존재 여부를 확인해보겠습니다. 전체 소스에서
updateRefreshToken호출/정의 검색:🏁 Script executed:
Length of output: 74
Token 엔티티 정의 위치에서 메서드를 다시 찾아보겠습니다.
🏁 Script executed:
Length of output: 2792
updateRefreshToken 메서드 정의 확인 및 개선 제안
public void updateRefreshToken(String refreshToken, LocalDateTime expiredDate) { … }가 정의되어 있습니다.• 만료 기간(30일)을 하드코딩 대신
application.yml등의 설정으로 외부화•
LocalDateTime.now()사용으로 인한 타임존 이슈를 방지하기 위해Clock주입 또는ZonedDateTime/Instant활용 검토🤖 Prompt for AI Agents