Skip to content

Commit

Permalink
Fix Failed to parse cookie string in middleware (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks authored May 4, 2023
1 parent ab200f0 commit 165ba70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brave-lizards-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@supabase/auth-helpers-nextjs': patch
---

Fix "Failed to parse cookie string" bug in middleware storage
1 change: 0 additions & 1 deletion packages/nextjs/src/middlewareClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class NextMiddlewareAuthStorageAdapter extends CookieAuthStorageAdapter {
httpOnly: false
});

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

0 comments on commit 165ba70

Please sign in to comment.