mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-05 00:58:47 +00:00
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:
@@ -30,6 +30,15 @@ const { handler, api } = betterAuth({
|
|||||||
"/organization/delete",
|
"/organization/delete",
|
||||||
],
|
],
|
||||||
secret: BETTER_AUTH_SECRET,
|
secret: BETTER_AUTH_SECRET,
|
||||||
|
advanced: {
|
||||||
|
useSecureCookies: false,
|
||||||
|
defaultCookieAttributes: {
|
||||||
|
sameSite: "lax",
|
||||||
|
secure: false,
|
||||||
|
httpOnly: true,
|
||||||
|
path: "/",
|
||||||
|
},
|
||||||
|
},
|
||||||
appName: "Dokploy",
|
appName: "Dokploy",
|
||||||
socialProviders: {
|
socialProviders: {
|
||||||
github: {
|
github: {
|
||||||
|
|||||||
Reference in New Issue
Block a user