-
Notifications
You must be signed in to change notification settings - Fork 2
fix(auth): 회원가입 시 authId의 Bearer 접두사 처리 #302
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
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
Oops, something went wrong.
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.
[nitpick] Consider extracting the Bearer prefix removal logic into a separate private method like 'removeBearer(String authId)' to improve code readability and enable potential reuse in other methods.
Uh oh!
There was an error while loading. Please reload this page.
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.
리뷰 감사합니다! 좋은 제안을 주셨네요.
말씀해주신 것처럼 로직을 별도 메소드로 추출하는 것의 장점에 대해 충분히 공감합니다. 다만, 현재 이 로직이 매우 간단하고 signUp 메소드 내에서만 사용되고 있어서, 전체적인 흐름을 한눈에 파악하기 위해 메소드 내부에 두는 편이 더 낫다고 판단했습니다.
재사용 가능성에 대해서도 고려했지만, YAGNI(You Ain't Gonna Need It) 원칙에 따라 지금 당장 필요하지 않은 재사용을 위해 코드를 분리하기보다는 현재의 단순성을 유지하는 쪽을 선택했습니다.
물론 로직이 더 복잡해지거나 다른 곳에서도 필요해진다면, 말씀해주신 대로 메소드로 분리하는 것이 분명 좋은 리팩토링이 될 것 같습니다. 따라서 이 제안은 좋은 의견으로 참고하되, 현재 상태를 그대로 유지하도록 하겠습니다. 의견 감사합니다! 🙏