diff --git a/src/main/java/trothly/trothcam/service/auth/OAuthService.java b/src/main/java/trothly/trothcam/service/auth/OAuthService.java index c67af33..6f6b442 100644 --- a/src/main/java/trothly/trothcam/service/auth/OAuthService.java +++ b/src/main/java/trothly/trothcam/service/auth/OAuthService.java @@ -135,6 +135,8 @@ public LoginResDto appleLogin(LoginReqDto loginReqDto) throws BaseException { // refreshToken 만료 후 재로그인 or 탈퇴 후 재로그인 public LoginResDto reLogin(Member member) { + log.info("재로그인 하는 경우"); + // accessToken, refreshToken 발급 String newAccessToken = jwtService.encodeJwtToken(new TokenDto(member.getId())); String newRefreshToken = jwtService.encodeJwtRefreshToken(member.getId()); @@ -142,6 +144,7 @@ public LoginResDto reLogin(Member member) { member.updateRefreshToken(newRefreshToken); // DB에 refreshToken 저장 member.updateStatus("active"); // inactive -> active로 변환 (탈퇴 후 재로그인만 해당) + memberRepository.save(member); return new LoginResDto(newAccessToken, newRefreshToken); }