🐛 fix(session): correct middleware configuration parameter
- rename cookie_name to session_cookie to match correct FastAPI middleware parameter - ensure session management functions as expected
This commit is contained in:
parent
036749ef07
commit
8f17f9bf8d
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ app.add_middleware(
|
||||||
secret_key=SESSION_SECRET,
|
secret_key=SESSION_SECRET,
|
||||||
same_site="lax",
|
same_site="lax",
|
||||||
https_only=SESSION_COOKIE_SECURE,
|
https_only=SESSION_COOKIE_SECURE,
|
||||||
cookie_name="fleetledger_session",
|
session_cookie="fleetledger_session",
|
||||||
max_age=60 * 60 * 24 * 30, # 30 days
|
max_age=60 * 60 * 24 * 30, # 30 days
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue