Skip to content

Commit

Permalink
Remove the appending of a cookie to the response (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks authored Sep 17, 2023
1 parent 10ac6fa commit dfff00a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-clocks-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@supabase/auth-helpers-nextjs': patch
---

Remove the appending of a cookie to the response
1 change: 0 additions & 1 deletion packages/nextjs/src/middlewareClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class NextMiddlewareAuthStorageAdapter extends CookieAuthStorageAdapter {

if (this.context.res.headers) {
this.context.res.headers.append('set-cookie', newSessionStr);
this.context.res.headers.append('cookie', newSessionStr);
}
}
}
Expand Down

0 comments on commit dfff00a

Please sign in to comment.