Skip to content

Commit

Permalink
Merge pull request #36 from Link-MIND/Fix/#35
Browse files Browse the repository at this point in the history
Fix/#35
  • Loading branch information
sss4920 authored Jan 9, 2024
2 parents e8013cb + 8a7739d commit 022aac9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public LoginResult getKaKaoId(String accessToken) {
responseData = restTemplate.postForEntity(KAKAO_URL,httpEntity,Object.class);
ObjectMapper objectMapper = new ObjectMapper();
HashMap profileResponse = (HashMap)objectMapper.convertValue( responseData.getBody(),Map.class).get("properties");
System.out.println(profileResponse.get("profile_image").toString());
return LoginResult.of(objectMapper.convertValue(responseData.getBody(), Map.class).get("id").toString(), profileResponse.get("profile_image").toString()); //소셜 id만 가져오는듯.
return LoginResult.of(objectMapper.convertValue(responseData.getBody(), Map.class).get("id").toString(), profileResponse==null?null:profileResponse.get("profile_image").toString()); //프로필 이미지 허용 x시 null로 넘기기.
}
}

0 comments on commit 022aac9

Please sign in to comment.