From 6d52dfa4a5fcf2c053a698f1f71f34cb47b2c63b Mon Sep 17 00:00:00 2001 From: eckrin Date: Wed, 22 Nov 2023 14:31:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20user=20db=EC=83=81=EC=9D=98=20refreshtok?= =?UTF-8?q?en=EB=8F=84=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/kusitms/jipbap/user/UserService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/kusitms/jipbap/user/UserService.java b/src/main/java/com/kusitms/jipbap/user/UserService.java index 01b03bf..7f069a4 100644 --- a/src/main/java/com/kusitms/jipbap/user/UserService.java +++ b/src/main/java/com/kusitms/jipbap/user/UserService.java @@ -29,6 +29,7 @@ public ReissueResponseDto reissue(String email, String refreshToken) { throw new RefreshTokenNotFoundException("리프레쉬 토큰에서 유저정보를 찾을 수 없습니다."); } tokenProvider.validateToken(tokenProvider.resolveToken(refreshToken)); + user.updateRefreshToken(refreshToken); TokenInfo newAccessToken = tokenProvider.createAccessToken(user.getEmail(), user.getRole()); TokenInfo newRefreshToken = tokenProvider.createRefreshToken(user.getEmail(), user.getRole());