diff --git a/packages/lucia/src/core.ts b/packages/lucia/src/core.ts index 70052bb28..38ead3328 100644 --- a/packages/lucia/src/core.ts +++ b/packages/lucia/src/core.ts @@ -81,7 +81,7 @@ export class Lucia< this.sessionCookieName = options?.sessionCookie?.name ?? "auth_session"; let sessionCookieExpiresIn = this.sessionExpiresIn; if (options?.sessionCookie?.expires === false) { - sessionCookieExpiresIn = new TimeSpan(365 * 2, "d"); + sessionCookieExpiresIn = new TimeSpan(400, "d"); } const baseSessionCookieAttributes: CookieAttributes = { httpOnly: true,