From 99d1f9fe5728029a844be68ce81bbe98c6ad9eec Mon Sep 17 00:00:00 2001 From: ckkim817 Date: Thu, 26 Dec 2024 03:47:17 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C?= =?UTF-8?q?=20=EB=A1=9C=EC=A7=81=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global/auth/filter/JwtAuthenticationFilter.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/sopt/seonyakServer/global/auth/filter/JwtAuthenticationFilter.java b/src/main/java/org/sopt/seonyakServer/global/auth/filter/JwtAuthenticationFilter.java index bdfb7d6..c64bef8 100644 --- a/src/main/java/org/sopt/seonyakServer/global/auth/filter/JwtAuthenticationFilter.java +++ b/src/main/java/org/sopt/seonyakServer/global/auth/filter/JwtAuthenticationFilter.java @@ -2,7 +2,6 @@ import static org.sopt.seonyakServer.global.auth.jwt.JwtValidationType.VALID_JWT; -import io.jsonwebtoken.ExpiredJwtException; import jakarta.servlet.FilterChain; import jakarta.servlet.ServletException; import jakarta.servlet.http.HttpServletRequest; @@ -50,11 +49,8 @@ protected void doFilterInternal(@NonNull HttpServletRequest request, // 따라서 예외를 직접 throw로 던져주는 것이 아닌, 발생시키기만 하고 다음 필터 호출로 이어지게끔 해야 하고, (doFilter) // 이렇게 하면 API의 permitAll 적용 여부에 따라 ExceptionTranslationFilter를 거칠지 판단하게 된다. log.error("JwtAuthentication Authentication Exception Occurs! - {}", exception.getMessage()); - - if (exception instanceof ExpiredJwtException) { - throw new CustomException(ErrorType.EXPIRED_JWT_TOKEN); - } } + // 다음 필터로 요청 전달 (호출) filterChain.doFilter(request, response); }