diff --git a/src/main/java/com/example/api/auth/handler/MyAuthenticationSuccessHandler.java b/src/main/java/com/example/api/auth/handler/MyAuthenticationSuccessHandler.java index 1dee839..7be7101 100644 --- a/src/main/java/com/example/api/auth/handler/MyAuthenticationSuccessHandler.java +++ b/src/main/java/com/example/api/auth/handler/MyAuthenticationSuccessHandler.java @@ -59,7 +59,8 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo .encode(StandardCharsets.UTF_8) .toUriString(); log.info("success redirecting"); - CookieUtils.addCookie(response, "access_token",token.getAccessToken(), 1000 * 60 * 60); +// CookieUtils.addCookie(response, "access_token",token.getAccessToken(), 1000 * 60 * 60); + CookieUtils.addCookie(response, "access_token",token.getAccessToken(), 10000); clearAuthenticationAttributes(request, response); // response.addCookie(CookieUtils.addCookie();); getRedirectStrategy().sendRedirect(request, response, targetUrl);