update permit schema, change token expiry to 7 days

This commit is contained in:
2025-03-05 12:07:52 +05:30
parent 382a392d56
commit c00e68bb47
3 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ export async function createSession(userId: string, ip?: string, ua?: string) {
ip: ip,
userAgent: ua,
createdAt: new Date(),
expiresAt: new Date(Date.now() + 3600 * 24 * 30 * 1000),
expiresAt: new Date(Date.now() + 3600 * 24 * 7 * 1000),
});
return newSession;