mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
chore: enforce cookie options for more security (#5618)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user