add function tokenLifeExtension

This commit is contained in:
smanylov
2026-01-12 13:39:35 +07:00
parent 6b9279f802
commit cb5a005041
4 changed files with 39 additions and 6 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export async function decrypt(session: string | undefined = '') {
}
export async function createSession(token: string, email: string) {
const expiresAt = new Date(Date.now() + 7 * 24 * 60 * 60 * 1000);
const expiresAt = new Date(Date.now() + 60 * 60 * 1000);
const session = await encrypt({
token,
email,