Files
supabase/apps/docs/content/guides/auth/server-side/migrating-to-ssr-from-auth-helpers.mdx
Kody JacksonandClaude Sonnet 5.5 ceae23e199 docs: add cross-links in guides (AI, API, Auth, Database, Functions, deployment) (#53560)
## What

Adds internal cross-links to docs guides

## Testing

- Prettier passes on the changed lines.
- Docs build passes (`pnpm build --filter=docs`).
- Docs link e2e run locally against the production build for every
changed page across this PR

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 08:57:10 -06:00

51 lines
1.6 KiB
Plaintext

---
title: 'Migrating to the SSR package from Auth Helpers'
description: 'Step-by-step guide to migrating your app to the new SSR package'
sidebar_label: 'Migrating to SSR 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
<Tabs scrollable size="small" type="underlined" defaultActiveId="nextjs" queryGroup="framework">
<TabPanel id="nextjs" label="Next.js">
```bash
npm uninstall @supabase/auth-helpers-nextjs
```
</TabPanel>
<TabPanel id="sveltekit" label="SvelteKit">
```bash
npm uninstall @supabase/auth-helpers-sveltekit
```
</TabPanel>
<TabPanel id="remix" label="Remix">
```bash
npm uninstall @supabase/auth-helpers-remix
```
</TabPanel>
</Tabs>
```bash
npm install @supabase/ssr
```
## Creating a client
The new `ssr` package exports two functions for creating a [Supabase client](/docs/reference/javascript/introduction). The `createBrowserClient` function is used in the client, and the `createServerClient` function is used in the server.
Read the [Creating a client](/docs/guides/auth/server-side/creating-a-client) page for examples of creating a client in your framework [and our migration guide](/kb/troubleshooting/how-to-migrate-from-supabase-auth-helpers-to-ssr-package-5NRunM).
## Next steps
- Implement [Authentication using Email and Password](/docs/guides/auth/passwords)
- Implement [Authentication using OAuth](/docs/guides/auth/social-sign-in)
- [Learn more about SSR](/docs/guides/auth/server-side/advanced-guide)