From 63ae8f7f61b64a3b45aab8a63fdb203e4d9222c4 Mon Sep 17 00:00:00 2001 From: NameIsUser06 Date: Thu, 28 Dec 2023 00:48:38 +0900 Subject: [PATCH] fix : jwtFilter token null check --- .../java/org/bssm/attachit/global/jwt/filter/JwtFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bssm/attachit/global/jwt/filter/JwtFilter.java b/src/main/java/org/bssm/attachit/global/jwt/filter/JwtFilter.java index 0d72eb5..77c82f3 100644 --- a/src/main/java/org/bssm/attachit/global/jwt/filter/JwtFilter.java +++ b/src/main/java/org/bssm/attachit/global/jwt/filter/JwtFilter.java @@ -24,7 +24,7 @@ public class JwtFilter extends OncePerRequestFilter { protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { String token = jwtUtil.resolveToken(request); - if (token != null) { + if (token != null && !token.isEmpty()) { if (!refreshTokenRepository.existsByAccessToken(token)) { throw LoggedOutAccessTokenException.EXCEPTION; }