fix(cloud): reenable magic login on cloud and extend session duration (#248)

* fix(cloud): reenable magic login

* feat: extend session duration
This commit is contained in:
Henry
2025-11-20 00:01:23 +00:00
committed by GitHub
parent b472c5ce93
commit 1651faae14
2 changed files with 26 additions and 15 deletions

View File

@@ -129,6 +129,11 @@ export const initAuth = (db: dbClient) => {
user: schema.users,
},
}),
session: {
expiresIn: 60 * 60 * 24 * 30, // 30 days
updateAge: 60 * 60 * 24 * 2, // Update session expiry every 48 hours if user is active
freshAge: 0,
},
emailAndPassword: {
enabled: env("NEXT_PUBLIC_ALLOW_CREDENTIALS")?.toLowerCase() === "true",
disableSignUp: