Skip to content

Commit

Permalink
소셜 로그인 정책 수정 (#61)
Browse files Browse the repository at this point in the history
- 소셜 플랫폼 프로필 사진 수집 제거
  • Loading branch information
ysw789 authored Sep 25, 2024
1 parent 7d2f239 commit dd16522
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/java/com/dongyang/dongpo/service/auth/SocialService.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public JwtToken getKakaoUserInfo(String accessToken) {
String age = kakaoAccount.getString("age_range");
String name = kakaoAccount.getString("name");
String nickname = profile.getString("nickname");
String profilePic;
if (profile.has("profile_image_url"))
profilePic = profile.getString("profile_image_url");
else
profilePic = null;
Member.Gender gender;

if (kakaoAccount.getString("gender").equals("female"))
Expand All @@ -100,7 +95,6 @@ else if (kakaoAccount.getString("gender").equals("male"))
.nickname(nickname)
.age(age)
.gender(gender)
.profilePic(profilePic)
.provider(SocialType.KAKAO)
.build());
} catch (WebClientResponseException e) {
Expand Down Expand Up @@ -133,11 +127,6 @@ public JwtToken getNaverUserInfo(String accessToken) {
String id = response.getString("id");
String name = response.getString("name");
String nickname = response.getString("nickname");
String profilePic;
if (response.has("profile_image"))
profilePic = response.getString("profile_image");
else
profilePic = null;
Member.Gender gender;

if (response.getString("gender").equals("F"))
Expand All @@ -154,7 +143,6 @@ else if (response.getString("gender").equals("M"))
.nickname(nickname)
.gender(gender)
.age(age)
.profilePic(profilePic)
.provider(SocialType.NAVER)
.build());
} catch (WebClientResponseException e) {
Expand Down

0 comments on commit dd16522

Please sign in to comment.