Skip to content

Commit 4a58412

Browse files
committed
fix: 카카오 로그인 오류 수정
1 parent 411ad0f commit 4a58412

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/example/log4u/common/oauth2/dto/KakaoResponseDto.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import lombok.RequiredArgsConstructor;
66

77
@RequiredArgsConstructor
8-
public class KakaoResponseDto implements OAuth2Response{
8+
public class KakaoResponseDto implements OAuth2Response {
99
@Override
1010
public String getNickname() {
1111
return "";
@@ -18,15 +18,14 @@ public String getProfileImageUrl() {
1818

1919
private final Map<String, Object> attribute;
2020

21-
2221
@Override
2322
public String getProvider() {
2423
return "kakao";
2524
}
2625

2726
@Override
2827
public String getProviderId() {
29-
return attribute.get("sub").toString();
28+
return attribute.get("id").toString();
3029
}
3130

3231
@Override

0 commit comments

Comments
 (0)