We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
withBlitzAuth
1 parent bddc1d8 commit ab455acCopy full SHA for ab455ac
.changeset/ninety-stingrays-double.md
@@ -0,0 +1,5 @@
1
+---
2
+"@blitzjs/auth": patch
3
4
+
5
+fix: Overriden custom cookies used inside `withBlitzAuth`
packages/blitz-auth/src/server/auth-sessions.ts
@@ -466,7 +466,7 @@ export class SessionContextClass implements SessionContext {
466
}
467
const cookieHeaders = this._headers.get("set-cookie")
468
if (response instanceof Response) {
469
- response.headers.set("Set-Cookie", cookieHeaders!)
+ response.headers.append("Set-Cookie", cookieHeaders!)
470
} else {
471
response.setHeader("Set-Cookie", splitCookiesString(cookieHeaders!))
472
0 commit comments