From 5562d8de3657360297f1f7cac529585b6120d818 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 16 Jan 2026 09:57:34 -0600 Subject: [PATCH] CLAUDE: Extend access token expiration to 24 hours Changed ACCESS_TOKEN_MAX_AGE from 1 hour to 24 hours to reduce frequency of re-authentication prompts. Co-Authored-By: Claude Opus 4.5 --- backend/app/utils/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/utils/cookies.py b/backend/app/utils/cookies.py index afcfa91..ee7f777 100644 --- a/backend/app/utils/cookies.py +++ b/backend/app/utils/cookies.py @@ -16,7 +16,7 @@ settings = get_settings() # Cookie configuration ACCESS_TOKEN_COOKIE = "pd_access_token" REFRESH_TOKEN_COOKIE = "pd_refresh_token" -ACCESS_TOKEN_MAX_AGE = 60 * 60 # 1 hour +ACCESS_TOKEN_MAX_AGE = 60 * 60 * 24 # 24 hours REFRESH_TOKEN_MAX_AGE = 60 * 60 * 24 * 7 # 7 days