add function tokenLifeExtension
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user