Skip to content

Commit

Permalink
#15 refactor : OAuth 에서 가져오는 정보 name -> 로그인 한 아이디로 변경
Browse files Browse the repository at this point in the history
깃허브에서 name 을 설정하지 않는 사용자면 null 값이 담기게 되어서 변경
  • Loading branch information
DOEKYONG committed Aug 4, 2023
1 parent 0b82e8e commit ac96b28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum OauthAttributes {
public UserProfile of(Map<String, Object> attributes) {
return UserProfile.builder()
.email((String) attributes.get("email"))
.name((String) attributes.get("name"))
.name((String) attributes.get("login"))
.imageUrl((String) attributes.get("avatar_url"))
.build();
}
Expand Down

0 comments on commit ac96b28

Please sign in to comment.