next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Update cookie handling for Supabase SSR package

Open ekremkenter opened this issue 1 year ago • 2 comments

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

ekremkenter avatar Jul 03 '24 07:07 ekremkenter

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

ijjk avatar Jul 03 '24 07:07 ijjk

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

ijjk avatar Jul 03 '24 07:07 ijjk