next.js
next.js copied to clipboard
Update cookie handling for Supabase SSR package
With latest version of @supabase/ssr package we need to change how we set cookies. This commit updates the cookie handling in the supabase middleware and server files. It replaces the get, set, and remove methods with getAll, and setAll methods respectively.
Supabase docs: https://supabase.com/docs/guides/auth/server-side/creating-a-client?environment=middleware&queryGroups=environment#creating-a-client
Allow CI Workflow Run
- [x] approve CI run for commit: 7e975aff264a73daa8621429e41b153c1b68f55a
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer
Allow CI Workflow Run
- [x] approve CI run for commit: b925435bc73b05fbf5230ed267bad1f8b8bf7670
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer