Skip to content

Commit

Permalink
Merge pull request #15 from Team-Wable/fix/#14-auth-api
Browse files Browse the repository at this point in the history
fix : auth api email
  • Loading branch information
Hong0329 authored Aug 18, 2024
2 parents 96d03b4 + fe5caae commit 4de5825
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 4de5825

Please sign in to comment.