Skip to content

Commit

Permalink
Merge pull request #190 from Troth-Cam/feat/apple-login
Browse files Browse the repository at this point in the history
fix(#5) : 로그 추가
  • Loading branch information
aeeazip authored Aug 21, 2023
2 parents 56562fb + 1757c0d commit 5bf2a42
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public LoginResDto appleLogin(LoginReqDto loginReqDto) throws BaseException {

Optional<Member> checkSub = memberRepository.findByAppleSub(sub);
if(checkSub.isPresent()) { // 2. email X + sub O (refreshToken 만료 후 재로그인 or 탈퇴 후 재로그인) -> 이미 회원가입한 경우
log.info("이미 회원가입 한 회원");
return reLogin(checkSub.get());
} else if(email == null) { // 3. email X + sub X
throw new InvalidTokenException("Apple OAuth Identity Token 값이 올바르지 않습니다.");
Expand Down

0 comments on commit 5bf2a42

Please sign in to comment.