Server-Side Auth Overview
When using Supabase with server-side languages and frameworks - such as Next.js, SvelteKit and Remix - it is important to configure your Supabase client to use cookies for storing user sessions. We have developed an @supabase/ssr
package to make this process as simple as possible. This package is currently in beta
. Adoption is recommended but be aware that the API is still unstable and may have breaking changes in the future.
Framework quickstarts
Next.js
SvelteKit
If you're currently using the Auth Helpers package, the docs are still available, however we recommend migrating to the new @supabase/ssr
package as this will be the recommended path moving forward.