extend db session so it's ahead of the cookie

This commit is contained in:
Lera Elvoé 2025-07-02 02:26:39 +03:00
parent dde1139eed
commit 395e86f179
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -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,
})