Migrating to the SSR package from Auth Helpers
A guide from Supabase
Apps on Plentiful run on Supabase's open-source database, sign-in, file storage and live updates, so most of this guide applies. The differences: your app reaches its database through its own server — not Supabase's data API (supabase.from(…)) — there are no Edge Functions (your app's server does that work), and scheduled work uses Jobs. Where it says "Supabase dashboard", use your app's Dashboard. Ask the builder when in doubt.
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#
1npm uninstall @supabase/auth-helpers-nextjs1npm install @supabase/ssrCreating 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.
Read the Creating a client page for examples of creating a client in your framework and our migration guide.
Next steps#
- Implement Authentication using Email and Password
- Implement Authentication using OAuth
- Learn more about SSR