mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
chore: enable subdomain cookies
This commit is contained in:
@@ -196,4 +196,10 @@ export const auth = betterAuth({
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
trustedOrigins: ["exp://"],
|
trustedOrigins: ["exp://"],
|
||||||
|
advanced: {
|
||||||
|
crossSubDomainCookies: {
|
||||||
|
enabled: process.env.NODE_ENV === "production",
|
||||||
|
domain: ".better-auth.com",
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user