diff --git a/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java b/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java index 91fb32d..d89ee72 100644 --- a/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java +++ b/src/main/java/com/readyvery/readyverydemo/security/jwt/filter/JwtAuthenticationProcessingFilter.java @@ -105,7 +105,7 @@ private String reIssueRefreshToken(UserInfo userInfo) { */ public void checkAccessTokenAndAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { - log.info("checkAccessTokenAndAuthentication() 호출"); + jwtService.extractAccessTokenFromCookies(request) .filter(jwtService::isTokenValid) .ifPresent(accessToken -> jwtService.extractEmail(accessToken) diff --git a/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java b/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java index 549e3a5..b81ca4c 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java +++ b/src/main/java/com/readyvery/readyverydemo/src/user/UserServiceImpl.java @@ -104,6 +104,7 @@ private void invalidateRefreshTokenCookie(HttpServletResponse response) { accessTokenCookie.setDomain(accessCookieDomain); accessTokenCookie.setMaxAge(0); // 만료 시간을 0으로 설정하여 즉시 만료 response.addCookie(accessTokenCookie); + } private UserInfo getUserInfo(Long id) {