Skip to content

Commit 5549d13

Browse files
committed
Set cookie expiration to 1 hour
1 parent 71affa9 commit 5549d13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/core/security.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def set_auth_cookie(subject: str | Any, expires_delta: timedelta) -> JSONRespons
2727
key="http_only_auth_cookie",
2828
value=access_token,
2929
httponly=True,
30-
max_age=30,
31-
expires=30,
30+
max_age=3600,
31+
expires=3600,
3232
samesite="lax",
3333
secure=True,
3434
domain=None,

0 commit comments

Comments
 (0)