Skip to content

Commit

Permalink
Fix: isNewUser 포함된 attributes로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnida committed Feb 11, 2025
1 parent a02e048 commit 7c6339c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2Authentic
// 반환된 DefaultOAuth2User는 나중에 @AuthenticationPrincipal로 받아서 필요한 정보를 꺼내 쓸 수 있음
return new DefaultOAuth2User(
Collections.singleton(new SimpleGrantedAuthority("ROLE_USER")),
oAuth2User.getAttributes(),
userAttributes, // 기존 attributes 대신 isNewUser 포함된 attributes
userNameAttributeName);

} catch (Exception e) {
Expand Down

0 comments on commit 7c6339c

Please sign in to comment.