The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Remove or deprioritise as many auth helpers mentions as possible (#38919)
Chris Chinchilla2a0911379e3d
diff --git a/apps/docs/content/_partials/auth_helpers.mdx b/apps/docs/content/_partials/auth_helpers.mdxnew file mode 100644index 00000000000..ccbf1888699--- /dev/null+++ b/apps/docs/content/_partials/auth_helpers.mdx@@ -0,0 +1,5 @@+<Admonition type="caution">++The Auth helpers package is deprecated. Use the new `@supabase/ssr` package for Server Side Authentication. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Read out the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.++</Admonition>diff --git a/apps/docs/content/guides/auth/auth-helpers.mdx b/apps/docs/content/guides/auth/auth-helpers.mdxindex 52fd9f29bfe..9c1d1653e9a 100644--- a/apps/docs/content/guides/auth/auth-helpers.mdx+++ b/apps/docs/content/guides/auth/auth-helpers.mdx@@ -5,11 +5,9 @@ description: 'Server-Side Auth guides and utilities for working with Supabase.'sidebar_label: 'Overview'----<Admonition type="caution">--The Auth helpers package is deprecated. Use the new `@supabase/ssr` package for Server Side Authentication. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Check out the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.--</Admonition>+<$Partial+path="auth_helpers.mdx"+/>Working with server-side frameworks is slightly different to client-side frameworks. In this section we cover the various ways of handling server-side authentication and demonstrate how to use the Supabase helper-libraries to make the process more seamless.diff --git a/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx b/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdxindex ab64eefb190..bac6b7abc58 100644--- a/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx+++ b/apps/docs/content/guides/auth/auth-helpers/nextjs-pages.mdx@@ -8,7 +8,9 @@ sitemapPriority: 0.3<Admonition type="caution">-The `auth-helpers` package has been replaced with the `@supabase/ssr` package. We recommend setting up Auth for your Next.js app with `@supabase/ssr` instead. See the [Next.js Server-Side Auth guide](/docs/guides/auth/server-side/nextjs?router=pages) to learn how.+The Auth helpers package is deprecated. Use the new `@supabase/ssr` package for Server Side Authentication. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Read the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.++We recommend setting up Auth for your Next.js app with `@supabase/ssr` instead. Read the [Next.js Server-Side Auth guide](/docs/guides/auth/server-side/nextjs?router=pages) to learn how.</Admonition>diff --git a/apps/docs/content/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/content/guides/auth/auth-helpers/nextjs.mdxindex 46b44999358..9eaab4f00aa 100644--- a/apps/docs/content/guides/auth/auth-helpers/nextjs.mdx+++ b/apps/docs/content/guides/auth/auth-helpers/nextjs.mdx@@ -8,7 +8,9 @@ sitemapPriority: 0.3<Admonition type="caution">-The `auth-helpers` are now deprecated. Use `@supabase/ssr` to set up Auth for your Next.js app. See the [Next.js Server-Side Auth guide](/docs/guides/auth/server-side/nextjs) to learn how.+The Auth helpers package is deprecated. Use the new `@supabase/ssr` package for Server Side Authentication. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Read the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.++We recommend setting up Auth for your Next.js app with `@supabase/ssr` instead. Read the [Next.js Server-Side Auth guide](/docs/guides/auth/server-side/nextjs?router=pages) to learn how.</Admonition>diff --git a/apps/docs/content/guides/auth/auth-helpers/remix.mdx b/apps/docs/content/guides/auth/auth-helpers/remix.mdxindex ffd0ad4f39c..a8b7074c9ec 100644--- a/apps/docs/content/guides/auth/auth-helpers/remix.mdx+++ b/apps/docs/content/guides/auth/auth-helpers/remix.mdx@@ -8,7 +8,7 @@ sitemapPriority: 0.3<Admonition type="caution">-We generally recommend using the new `@supabase/ssr` package instead of `auth-helpers`. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Check out the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.+The Auth helpers package is deprecated. Use the new `@supabase/ssr` package for Server Side Authentication. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Read the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.</Admonition>diff --git a/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx b/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdxindex 310be26f91a..9a2e26f1354 100644--- a/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx+++ b/apps/docs/content/guides/auth/auth-helpers/sveltekit.mdx@@ -8,7 +8,7 @@ sitemapPriority: 0.3<Admonition type="caution">-We generally recommend using the new `@supabase/ssr` package instead of `auth-helpers`. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Check out the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.+The Auth helpers package is deprecated. Use the new `@supabase/ssr` package for Server Side Authentication. `@supabase/ssr` takes the core concepts of the Auth Helpers package and makes them available to any server framework. Read the [migration doc](/docs/guides/auth/server-side/migrating-to-ssr-from-auth-helpers) to learn more.</Admonition>diff --git a/apps/docs/content/guides/auth/quickstarts/nextjs.mdx b/apps/docs/content/guides/auth/quickstarts/nextjs.mdxindex 5c422133692..94924ff67ca 100644--- a/apps/docs/content/guides/auth/quickstarts/nextjs.mdx+++ b/apps/docs/content/guides/auth/quickstarts/nextjs.mdx@@ -31,7 +31,7 @@ hideToc: true<StepHikeCompact.Details title="Create a Next.js app">Use the `create-next-app` command and the `with-supabase` template, to create a Next.js app pre-configured with:- - [Cookie-based Auth](/docs/guides/auth/auth-helpers/nextjs)+ - [Cookie-based Auth](docs/guides/auth/server-side/creating-a-client?queryGroups=package-manager&package-manager=npm&queryGroups=framework&framework=nextjs&queryGroups=environment&environment=server)- [TypeScript](https://www.typescriptlang.org/)- [Tailwind CSS](https://tailwindcss.com/)diff --git a/apps/docs/content/guides/auth/server-side.mdx b/apps/docs/content/guides/auth/server-side.mdxindex b18e8f0950f..3c7d3d3cb64 100644--- a/apps/docs/content/guides/auth/server-side.mdx+++ b/apps/docs/content/guides/auth/server-side.mdx@@ -17,11 +17,9 @@ Make sure to use the PKCE flow instructions where those differ from the implicitWe have developed an [`@supabase/ssr`](https://www.npmjs.com/package/@supabase/ssr) package to make setting up the Supabase client 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.-<Admonition type="tip">--If you're currently using the [Auth Helpers package](https://github.com/supabase/auth-helpers), the [docs are still available](/docs/guides/auth/auth-helpers), however we recommend migrating to the new `@supabase/ssr` package as this will be the recommended path moving forward.--</Admonition>+<$Partial+path="auth_helpers.mdx"+/>## Framework quickstartsdiff --git a/apps/docs/content/guides/auth/server-side/advanced-guide.mdx b/apps/docs/content/guides/auth/server-side/advanced-guide.mdxindex d189ff66a96..536b92ddd08 100644--- a/apps/docs/content/guides/auth/server-side/advanced-guide.mdx+++ b/apps/docs/content/guides/auth/server-side/advanced-guide.mdx@@ -24,8 +24,6 @@ In the PKCE flow, a redirect is made to your app, with an Auth Code contained inTo maintain the session, these tokens must be stored in a storage medium securely shared between client and server, which is traditionally cookies. Whenever the session is refreshed, the auth and refresh tokens in the shared storage medium must be updated. Supabase client libraries provide a customizable `storage` option when a client is initiated, allowing you to change where tokens are stored.-For an implementation example, see the [@supabase/ssr](https://github.com/supabase/auth-helpers/blob/main/packages/ssr/src/index.ts) package.-## Frequently asked questions{/* supa-mdx-lint-disable Rule004ExcludeWords */}diff --git a/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx b/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdxindex 5dace7e590c..e7fc33911c0 100644--- a/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx+++ b/apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx@@ -18,7 +18,7 @@ hideToc: true<StepHikeCompact.Details title="Create a Next.js app">Use the `create-next-app` command and the `with-supabase` template, to create a Next.js app pre-configured with:- - [Cookie-based Auth](/docs/guides/auth/auth-helpers/nextjs)+ - [Cookie-based Auth](docs/guides/auth/server-side/creating-a-client?queryGroups=package-manager&package-manager=npm&queryGroups=framework&framework=nextjs&queryGroups=environment&environment=server)- [TypeScript](https://www.typescriptlang.org/)- [Tailwind CSS](https://tailwindcss.com/)diff --git a/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdxindex 00dfdeacf89..4fe57e4e3aa 100644--- a/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx+++ b/apps/docs/content/guides/getting-started/tutorials/with-nextjs.mdx@@ -1028,7 +1028,6 @@ At this stage you have a fully functional application!- See the complete [example on GitHub](https://github.com/supabase/supabase/tree/master/examples/user-management/nextjs-user-management) and deploy it to Vercel- [Build a Twitter Clone with the Next.js App Router and Supabase - free egghead course](https://egghead.io/courses/build-a-twitter-clone-with-the-next-js-app-router-and-supabase-19bebadb)-- Explore the [pre-built Auth UI for React](/docs/guides/auth/auth-helpers/auth-ui)-- Explore the [Auth Helpers for Next.js](/docs/guides/auth/auth-helpers/nextjs)+- Explore the [pre-built Auth components](/ui/docs/nextjs/password-based-auth)- Explore the [Supabase Cache Helpers](https://github.com/psteinroe/supabase-cache-helpers)- See the [Next.js Subscription Payments Starter](https://github.com/vercel/nextjs-subscription-payments) template on GitHub