From 395e86f1792308e9c9aecfa1f56410390556c824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Wed, 2 Jul 2025 02:26:39 +0300 Subject: [PATCH] extend db session so it's ahead of the cookie --- app/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/users.py b/app/routes/users.py index 854c6f9..0c6eaed 100644 --- a/app/routes/users.py +++ b/app/routes/users.py @@ -64,7 +64,7 @@ def create_session(user_id): return Sessions.create({ "key": secrets.token_hex(16), "user_id": user_id, - "expires_at": int(time.time()) + 30 * 24 * 60 * 60, + "expires_at": int(time.time()) + 32 * 24 * 60 * 60, })