diff --git a/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java b/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java index 05f1a2e..a6671c1 100644 --- a/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java +++ b/src/main/java/com/mpnp/baechelin/login/jwt/service/TokenService.java @@ -64,7 +64,7 @@ public AuthResponse refreshToken(HttpServletRequest request, HttpServletResponse .orElse((null)); AuthToken authRefreshToken = tokenProvider.convertAuthToken(refreshToken); - if (!authRefreshToken.tokenValidate()) { + if (authRefreshToken.getToken() == null || !authRefreshToken.tokenValidate()) { throw new CustomException(ErrorCode.INVALID_REFRESH_TOKEN); }