update permit schema, change token expiry to 7 days
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user