From 8f17f9bf8d318d33cc1784f826a6462935a8fa3d Mon Sep 17 00:00:00 2001 From: nocci Date: Sat, 6 Dec 2025 13:18:13 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(session):=20correct=20middle?= =?UTF-8?q?ware=20configuration=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - rename cookie_name to session_cookie to match correct FastAPI middleware parameter - ensure session management functions as expected --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 6ff6774..6ecb272 100644 --- a/app/main.py +++ b/app/main.py @@ -45,7 +45,7 @@ app.add_middleware( secret_key=SESSION_SECRET, same_site="lax", https_only=SESSION_COOKIE_SECURE, - cookie_name="fleetledger_session", + session_cookie="fleetledger_session", max_age=60 * 60 * 24 * 30, # 30 days )