Skip to content

Commit 4f4b25a

Browse files
committed
chore: updated cookie config
1 parent 0131e7f commit 4f4b25a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

apps/api/src/lib/auth/auth.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,9 @@ export const auth = betterAuth({
1818
},
1919
advanced: {
2020
useSecureCookies: isProd,
21-
cookies: {
22-
state: {
23-
attributes: {
24-
sameSite: isProd ? "none" : "lax",
25-
secure: isProd,
26-
},
27-
},
21+
crossSubDomainCookies: {
22+
enabled: isProd,
23+
domain: "flagix.com",
2824
},
2925
},
3026
socialProviders: {

0 commit comments

Comments
 (0)