Skip to content

Commit

Permalink
🐛 fixed naver login bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jafacode committed Jan 26, 2025
1 parent 1022125 commit 789834c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class CustomAuthenticationSuccessHandler(
): String {
return when (provider) {
"google" -> attributes["name"] as String
"naver" -> (attributes["response"] as Map<*, *>)["name"] as String
"naver" -> (attributes["response"] as Map<*, *>)["nickname"] as String
"kakao" -> {
val kakaoAccount = attributes["kakao_account"] as Map<*, *>
val profile = kakaoAccount["profile"] as Map<*, *>
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ spring:
authorizationGrantType: authorization_code
redirectUri: "https://toykarrot.shop/{action}/oauth2/code/{registrationId}"
scope:
- nickname
- profile
- email
- profile_image
clientName: Naver
kakao:
clientId: '${KAKAO_CLI_ID}'
Expand All @@ -41,7 +40,6 @@ spring:
redirectUri: "https://toykarrot.shop/{action}/oauth2/code/{registrationId}"
scope:
- profile_nickname
- profile_image
- account_email
clientName: Kakao
provider:
Expand Down

0 comments on commit 789834c

Please sign in to comment.