Skip to content

Commit

Permalink
[fix] 토큰 재발급 시 리프레시 토큰 빈 값 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryeolee committed Oct 27, 2023
1 parent b1503a5 commit 8dcb729
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public TokenResponseDto reissueToken(String refreshToken, Long userId) {

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

if(Objects.requireNonNull(redisRefreshToken).equals(refreshToken) || redisRefreshToken.isEmpty()){
if(Objects.requireNonNull(redisRefreshToken).equals(refreshToken) && !redisRefreshToken.isEmpty()){

String userRole = userRepository.findUserRole(userId);

Expand Down

0 comments on commit 8dcb729

Please sign in to comment.