From c4ebc6daff07a617e45b0904f495172279449cfc Mon Sep 17 00:00:00 2001 From: namhyo01 Date: Thu, 19 Oct 2023 03:54:09 +0900 Subject: [PATCH] =?UTF-8?q?fix(BE):=20access=5Ftoken=20=EC=9C=A0=ED=9A=A8?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=20=EC=88=98=EC=A0=95=20for=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EC=B2=B4=ED=81=AC=EC=9A=A9=20#114?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/auth/handler/MyAuthenticationSuccessHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);