Skip to content

Commit

Permalink
feat(jwt): refreshtoken 업데이트 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
junhyeongkim2 committed Oct 30, 2024
1 parent 56788c4 commit 2d8636b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ protected String determineTargetUrl(jakarta.servlet.http.HttpServletRequest requ
private RefreshToken verifyExpirationAndUpdateToken(RefreshToken refreshToken) {
if (refreshToken.getExpiryDate().compareTo(Instant.now()) < 0) {
log.info("refreshToken expired : {}", refreshToken.getToken());
refreshToken.updateToken();
return refreshTokenRepository.save(refreshToken);
}
return refreshToken;
Expand Down

0 comments on commit 2d8636b

Please sign in to comment.