diff --git a/apps/web/modules/auth/lib/authOptions.ts b/apps/web/modules/auth/lib/authOptions.ts index eb3e277e6b..4d9660ced5 100644 --- a/apps/web/modules/auth/lib/authOptions.ts +++ b/apps/web/modules/auth/lib/authOptions.ts @@ -177,6 +177,17 @@ export const authOptions: NextAuthOptions = { // Conditionally add enterprise SSO providers ...(ENTERPRISE_LICENSE_KEY ? getSSOProviders() : []), ], + cookies: { + sessionToken: { + name: "next-auth.session-token", + options: { + httpOnly: true, + secure: process.env.NODE_ENV === "production", + sameSite: "lax", + path: "/", + }, + }, + }, session: { maxAge: 3600, },