We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc0248d commit 950a03cCopy full SHA for 950a03c
sim/app/lib/auth.ts
@@ -37,8 +37,11 @@ export const auth = betterAuth({
37
session: {
38
cookieCache: {
39
enabled: true,
40
- maxAge: 5 * 60, // Cache duration (5 minutes)
+ maxAge: 24 * 60 * 60, // 24 hours in seconds
41
},
42
+ expiresIn: 30 * 24 * 60 * 60, // 30 days (how long a session can last overall)
43
+ updateAge: 24 * 60 * 60, // 24 hours (how often to refresh the expiry)
44
+ freshAge: 60 * 60, // 1 hour (or set to 0 to disable completely)
45
46
account: {
47
accountLinking: {
0 commit comments