diff --git a/backend/memetory/src/main/java/com/example/memetory/global/security/jwt/filter/JwtAuthenticationProcessingFilter.java b/backend/memetory/src/main/java/com/example/memetory/global/security/jwt/filter/JwtAuthenticationProcessingFilter.java index 5a77455..05ca701 100644 --- a/backend/memetory/src/main/java/com/example/memetory/global/security/jwt/filter/JwtAuthenticationProcessingFilter.java +++ b/backend/memetory/src/main/java/com/example/memetory/global/security/jwt/filter/JwtAuthenticationProcessingFilter.java @@ -65,14 +65,16 @@ private void checkRefreshTokenAndReIssueAccessToken(HttpServletResponse response } private void checkAccessTokenAndAuthentication(HttpServletRequest request, HttpServletResponse response, - FilterChain filterChain) { + FilterChain filterChain) throws ServletException, IOException { try { String email = jwtService.getEmail(request); memberRepository.findByEmail(email).ifPresent(this::saveAuthentication); - filterChain.doFilter(request, response); } catch (Exception e) { sendError(response, SC_FORBIDDEN); } + finally { + filterChain.doFilter(request, response); + } } private void saveAuthentication(Member myMember) {