-
Notifications
You must be signed in to change notification settings - Fork 0
[RELEASE] v2.1.8 로그인 통합 오류 해결 #342
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
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ public Tokens kakaoLogin(KakaoLoginRequest request) { | |
| .orElseGet(() -> userRepository.findFirstByEmailOrderByIdAsc(request.email()) | ||
| .orElseGet(() -> userService.join(request.email(), KAKAO, request.providerId()))); | ||
|
|
||
| return generateOauthJwtTokens(user.getEmail(), KAKAO, request.providerId()); | ||
| return generateOauthJwtTokens(user.getEmail(), user.getProvider(), user.getProviderId()); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -51,7 +51,7 @@ public Tokens kakaoLoginV2(KakaoLoginRequestV2 request) { | |
| user.updateDeviceType(request.deviceType()); | ||
|
|
||
|
|
||
| return generateOauthJwtTokens(user.getEmail(), KAKAO, request.providerId()); | ||
| return generateOauthJwtTokens(user.getEmail(), user.getProvider(), user.getProviderId()); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
|
|
||
|
|
||
|
|
@@ -64,7 +64,7 @@ public Tokens appleLogin(AppleLoginRequest request) { | |
|
|
||
| updateAppleUserEmail(user, oAuthInfo.email()); | ||
|
|
||
| return generateOauthJwtTokens(user.getEmail(), APPLE, oAuthInfo.providerId()); | ||
| return generateOauthJwtTokens(user.getEmail(), user.getProvider(), user.getProviderId()); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
|
|
||
| /** | ||
|
|
@@ -81,7 +81,7 @@ public Tokens appleLoginV2(AppleLoginRequestV2 request) { | |
|
|
||
| user.updateDeviceType(request.deviceType()); | ||
|
|
||
| return generateOauthJwtTokens(user.getEmail(), APPLE, oAuthInfo.providerId()); | ||
| return generateOauthJwtTokens(user.getEmail(), user.getProvider(), user.getProviderId()); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
|
|
||
| public Tokens refreshTokens(Authentication authentication) { | ||
|
|
||
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.
이 메서드 호출은 올바르게 수정되었습니다. 향후 유지보수성을 높이기 위해,
generateOauthJwtTokens메서드가User객체를 직접 파라미터로 받도록 리팩토링하는 것을 고려해볼 수 있습니다. 예를 들어,generateOauthJwtTokens(user)와 같이 호출하면 여러 파라미터를 개별적으로 전달할 필요가 없어 코드가 더 간결해지고 명확해집니다. 이 변경은 이번 PR의 범위를 벗어날 수 있으므로 다음 기회에 적용해보시는 것을 추천합니다.