Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: user db상의 refreshtoken도 업데이트 #71

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/com/kusitms/jipbap/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Loading