mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 23:17:59 -05:00
feat[session]: increase session durations for better UX
This commit is contained in:
@@ -37,8 +37,11 @@ export const auth = betterAuth({
|
||||
session: {
|
||||
cookieCache: {
|
||||
enabled: true,
|
||||
maxAge: 5 * 60, // Cache duration (5 minutes)
|
||||
maxAge: 24 * 60 * 60, // 24 hours in seconds
|
||||
},
|
||||
expiresIn: 30 * 24 * 60 * 60, // 30 days (how long a session can last overall)
|
||||
updateAge: 24 * 60 * 60, // 24 hours (how often to refresh the expiry)
|
||||
freshAge: 60 * 60, // 1 hour (or set to 0 to disable completely)
|
||||
},
|
||||
account: {
|
||||
accountLinking: {
|
||||
|
||||
Reference in New Issue
Block a user