Skip to content

Commit

Permalink
fix auth api email
Browse files Browse the repository at this point in the history
  • Loading branch information
Hong0329 committed Aug 18, 2024
1 parent 96d03b4 commit fe5caae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ private SocialInfoDto getKakaoSocialData(String socialAccessToken) {
// String nickname = jsonNode.get("kakao_account").get("profile").get("nickname").asText();
// String profileUrl = jsonNode.get("kakao_account").get("profile").get("profile_image_url").asText();
String kakaoId = jsonNode.get("id").asText();
// String email = jsonNode.get("kakao_account").get("email").asText();
String email = jsonNode.get("kakao_account").get("email").asText();

// return new SocialInfoDto(kakaoId, nickname, profileUrl,email);
return new SocialInfoDto(kakaoId, "신규 유저","신규 유저");
return new SocialInfoDto(kakaoId, "신규 유저",email);
} catch (JsonProcessingException e) {
throw new BaseException(HttpStatus.INTERNAL_SERVER_ERROR, "카카오 계정 데이터 가공 실패");
}
Expand Down

0 comments on commit fe5caae

Please sign in to comment.