Skip to content

Commit

Permalink
feat: 프로필 없는 회원 구분
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Dec 14, 2024
1 parent 6062c92 commit 096d329
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package haengdong.user.application;

import com.auth0.jwt.JWT;
import com.auth0.jwt.interfaces.Claim;
import com.auth0.jwt.interfaces.DecodedJWT;
import haengdong.user.application.request.UserJoinAppRequest;
import lombok.RequiredArgsConstructor;
Expand All @@ -26,7 +27,8 @@ public Long joinByKakao(String code, String redirectUri) {

String memberNumber = decodedJWT.getSubject();
String nickname = decodedJWT.getClaim(NICKNAME_KEY).asString();
String picture = decodedJWT.getClaim(PICTURE_KEY).asString();
Claim pictureClaim = decodedJWT.getClaim(PICTURE_KEY);
String picture = pictureClaim.isNull() ? null : pictureClaim.asString();

log.info("로그인 성공 : {}, {}, {}, {}", code, memberNumber, nickname, picture);

Expand Down

0 comments on commit 096d329

Please sign in to comment.