Skip to content

Commit

Permalink
[fix] 재발급 메서드 userId 형변환 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchoGreenT committed Oct 21, 2023
1 parent 9f30539 commit c48078a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public TokenResponseDto reissueToken(String refreshToken, Long userId) {
return reissueTokenResponse;
}

String redisRefreshToken = redisTemplate.opsForValue().get(userId);
String redisRefreshToken = redisTemplate.opsForValue().get(userId.toString());

if(redisRefreshToken.equals(refreshToken)){

Expand All @@ -179,7 +179,7 @@ public TokenResponseDto reissueToken(String refreshToken, Long userId) {
.builder()
.code(200)
.message("OK")
.accessToken(jwtTokenProvider.createAccessToken(Long.valueOf(userId),userRole))
.accessToken(jwtTokenProvider.createAccessToken(userId,userRole))
.refreshToken(refreshToken)
.build();

Expand Down

0 comments on commit c48078a

Please sign in to comment.