Skip to content

Commit

Permalink
Merge pull request #96 from Central-MakeUs/dev
Browse files Browse the repository at this point in the history
[Fix] isNewUser가 항상 false인 오류 수정
  • Loading branch information
dainnida authored Feb 11, 2025
2 parents 895681f + 7c6339c commit f08c681
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 f08c681

Please sign in to comment.