Skip to content

Commit

Permalink
[HOTFIX] 불필요한 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkim817 committed Dec 25, 2024
1 parent 308f9b7 commit 99d1f9f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 99d1f9f

Please sign in to comment.