cross subdomain cookies issue

this is part of my config:
export const auth = betterAuth({
database: prismaAdapter(prisma, {
provider: "postgresql",
}),
emailAndPassword: {
enabled: true,
},
advanced: {
crossSubDomainCookies: {
enabled: true,
domain: ".sendshift.email",
},
defaultCookieAttributes: {
secure: true,
httpOnly: true,
sameSite: "none",
partitioned: true,
},
},
hooks: {
export const auth = betterAuth({
database: prismaAdapter(prisma, {
provider: "postgresql",
}),
emailAndPassword: {
enabled: true,
},
advanced: {
crossSubDomainCookies: {
enabled: true,
domain: ".sendshift.email",
},
defaultCookieAttributes: {
secure: true,
httpOnly: true,
sameSite: "none",
partitioned: true,
},
},
hooks: {
my api is on api.sendshift.email and my frontend is on sendshift.email. I still get (only with betterauth no other endpoints) "
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?