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 8dcb729 commit 4c168cd
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(!redisRefreshToken.isEmpty() && redisRefreshToken.equals(refreshToken)){

String userRole = userRepository.findUserRole(userId);

Expand Down

0 comments on commit 4c168cd

Please sign in to comment.