diff --git a/src/main/java/com/gapple/weeingback/global/jwt/JwtProvider.java b/src/main/java/com/gapple/weeingback/global/jwt/JwtProvider.java index 0e2e6c4..1ac322f 100644 --- a/src/main/java/com/gapple/weeingback/global/jwt/JwtProvider.java +++ b/src/main/java/com/gapple/weeingback/global/jwt/JwtProvider.java @@ -82,10 +82,9 @@ private String getRole(String token) { } public boolean validateToken(String token) { - if (token.isEmpty()) { + if (token == null) { return false; } - try { return Jwts.parserBuilder() .setSigningKey(secretKey.getBytes())