Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cookie handling for Supabase SSR package #67413

Open
wants to merge 2 commits into
base: canary
Choose a base branch
from

Conversation

ekremkenter
Copy link

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

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`, `setAll`, and `removeAll` methods respectively. This change ensures that all cookies are handled consistently and improves the overall cookie management in the codebase.
@ijjk ijjk added the examples Issue/PR related to examples label Jul 3, 2024
@ijjk
Copy link
Member

ijjk commented Jul 3, 2024

Allow CI Workflow Run

  • approve CI run for commit: 7e975af

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

@ijjk
Copy link
Member

ijjk commented Jul 3, 2024

Allow CI Workflow Run

  • approve CI run for commit: b925435

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants