vercel / next.js

The React Framework
https://nextjs.org
MIT License
125.44k stars 26.79k forks source link

Update cookie handling for Supabase SSR package #67413

Closed ekremkenter closed 2 months ago

ekremkenter commented 3 months ago

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

ijjk commented 3 months ago

Allow CI Workflow Run

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

ijjk commented 3 months ago

Allow CI Workflow Run

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer