Skip to content

Commit

Permalink
fix: token validation 과정에서 refreshtoken 가공
Browse files Browse the repository at this point in the history
  • Loading branch information
eckrin committed Nov 22, 2023
1 parent de43b4b commit 2d33a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/kusitms/jipbap/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ReissueResponseDto reissue(String email, String refreshToken) {
if(!user.getRefreshToken().equals(refreshToken)) {
throw new RefreshTokenNotFoundException("리프레쉬 토큰에서 유저정보를 찾을 수 없습니다.");
}
tokenProvider.validateToken(refreshToken);
tokenProvider.validateToken(tokenProvider.resolveToken(refreshToken));

TokenInfo newAccessToken = tokenProvider.createAccessToken(user.getEmail(), user.getRole());
TokenInfo newRefreshToken = tokenProvider.createRefreshToken(user.getEmail(), user.getRole());
Expand Down

0 comments on commit 2d33a91

Please sign in to comment.