feat(auth): add advanced cookie settings for better security management

- Introduced advanced cookie settings in the authentication configuration, including options for secure cookies and default cookie attributes.
- This enhancement aims to improve security practices related to cookie handling in the application.
This commit is contained in:
Mauricio Siu
2026-02-08 04:02:04 -06:00
parent 79e02483ad
commit f78819d81a

View File

@@ -30,6 +30,15 @@ const { handler, api } = betterAuth({
"/organization/delete",
],
secret: BETTER_AUTH_SECRET,
advanced: {
useSecureCookies: false,
defaultCookieAttributes: {
sameSite: "lax",
secure: false,
httpOnly: true,
path: "/",
},
},
appName: "Dokploy",
socialProviders: {
github: {