mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-26 08:56:40 -05:00
docs: added "partitioned: true" for cross-domain (foreign) cookies (#1591)
This commit is contained in:
@@ -71,6 +71,7 @@ export const auth = betterAuth({
|
||||
secure: true,
|
||||
httpOnly: true,
|
||||
sameSite: "none", // Allows CORS-based cookie sharing across subdomains
|
||||
partitioned: true // New browser standards will mandate this for foreign cookies
|
||||
},
|
||||
},
|
||||
trustedOrigins: [
|
||||
|
||||
@@ -127,7 +127,8 @@ export const auth = createAuth({
|
||||
advanced: {
|
||||
defaultCookieAttributes: {
|
||||
sameSite: "none",
|
||||
secure: true
|
||||
secure: true,
|
||||
partitioned: true // New browser standards will mandate this for foreign cookies
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -141,7 +142,8 @@ export const auth = createAuth({
|
||||
cookies: {
|
||||
sessionToken: {
|
||||
sameSite: "none",
|
||||
secure: true
|
||||
secure: true,
|
||||
partitioned: true // New browser standards will mandate this for foreign cookies
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user