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)