Skip to content

Commit 63ae8f7

Browse files
committed
fix : jwtFilter token null check
1 parent b4deb46 commit 63ae8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/bssm/attachit/global/jwt/filter/JwtFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class JwtFilter extends OncePerRequestFilter {
2424
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
2525
String token = jwtUtil.resolveToken(request);
2626

27-
if (token != null) {
27+
if (token != null && !token.isEmpty()) {
2828
if (!refreshTokenRepository.existsByAccessToken(token)) {
2929
throw LoggedOutAccessTokenException.EXCEPTION;
3030
}

0 commit comments

Comments
 (0)