diff --git a/src/main/java/com/readyvery/readyverydemo/security/oauth2/OAuthAttributes.java b/src/main/java/com/readyvery/readyverydemo/security/oauth2/OAuthAttributes.java index 66241aa..024e26e 100644 --- a/src/main/java/com/readyvery/readyverydemo/security/oauth2/OAuthAttributes.java +++ b/src/main/java/com/readyvery/readyverydemo/security/oauth2/OAuthAttributes.java @@ -58,7 +58,7 @@ public UserInfo toEntity(SocialType socialType, OAuth2UserInfo oauth2UserInfo) { .socialType(socialType) .socialId(oauth2UserInfo.getId()) .email(oauth2UserInfo.getEmail()) - .phone(oauth2UserInfo.getId()) + .phone(oauth2UserInfo.getPhoneNumber()) .age(oauth2UserInfo.getAge()) .birth(oauth2UserInfo.getBirth()) .nickName(oauth2UserInfo.getNickName())