Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Home

Migrating to the SSR package from Auth Helpers

The new ssr package takes the core concepts of the Auth Helpers and makes them available to any server language or framework. This page will guide you through migrating from the Auth Helpers package to ssr.

Replacing Supabase packages


_10
npm uninstall @supabase/auth-helpers-nextjs


_10
npm install @supabase/ssr

Creating a client

The new ssr package exports two functions for creating a Supabase client. The createBrowserClient function is used in the client, and the createServerClient function is used in the server.

Check out the Creating a client page for examples of creating a client in your framework.

Next steps