From 9903325f17ba74fac457761a042405e70e6c8a5e Mon Sep 17 00:00:00 2001 From: Vasily Zubarev Date: Tue, 22 Jul 2025 21:28:00 +0200 Subject: [PATCH] fix: session expires too fast --- lib/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth.ts b/lib/auth.ts index af1784d..4a8952a 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -34,7 +34,7 @@ export const auth = betterAuth({ }, session: { strategy: "jwt", - maxAge: 180 * 24 * 60 * 60, // 180 days + expiresIn: 180 * 24 * 60 * 60, // 365 days updateAge: 24 * 60 * 60, // 24 hours cookieCache: { enabled: true,