extend db session so it's ahead of the cookie

This commit is contained in:
2025-07-02 02:26:39 +03:00
parent dde1139eed
commit 395e86f179

View File

@ -64,7 +64,7 @@ def create_session(user_id):
return Sessions.create({ return Sessions.create({
"key": secrets.token_hex(16), "key": secrets.token_hex(16),
"user_id": user_id, "user_id": user_id,
"expires_at": int(time.time()) + 30 * 24 * 60 * 60, "expires_at": int(time.time()) + 32 * 24 * 60 * 60,
}) })