From 9add3593c1e223f0cddfb77c27328b9f91f96d82 Mon Sep 17 00:00:00 2001 From: Igor I Date: Mon, 23 Dec 2024 17:02:46 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9A=D1=83=D0=BA=D0=B8=20=D1=81=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D0=BB=20=D0=BD=D0=B0=2012=20=D1=87=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2=20(=D0=B4=D0=B0=D1=82=D0=B0=20=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D1=81=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=BC=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D1=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/ccalm/jwt/MainController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/ccalm/jwt/MainController.java b/src/main/java/org/ccalm/jwt/MainController.java index 687c26b..546f1a2 100644 --- a/src/main/java/org/ccalm/jwt/MainController.java +++ b/src/main/java/org/ccalm/jwt/MainController.java @@ -219,7 +219,7 @@ public class MainController implements ServletContextAware { if (jwt_r == null || jwt_r.isEmpty()) { maxAge = Duration.ZERO; // Удаляем куки } else { - maxAge = Duration.ofHours(12); // 12 часов + maxAge = Duration.ofSeconds(refresh_time); } // Создаем ResponseCookie с настройками @@ -247,7 +247,7 @@ public class MainController implements ServletContextAware { if (jwt_a == null || jwt_a.isEmpty()) { maxAge = Duration.ZERO; // Удаляем куки } else { - maxAge = Duration.ofSeconds(access_time); //В 2 раза больше + maxAge = Duration.ofSeconds(refresh_time); } // Создаем ResponseCookie с настройками ResponseCookie cookie = ResponseCookie.from("jwt_a", jwt_a)