diff --git a/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java b/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java index 843b2b1..2a46829 100644 --- a/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java +++ b/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java @@ -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);