The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: groupId and headings
thorwebdevc8b5354709ea
diff --git a/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdx b/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdxindex 6bf0f2b83f2..0fd7813a246 100644--- a/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdx+++ b/apps/reference/docs/guides/auth/auth-helpers/nextjs.mdx@@ -226,7 +226,7 @@ const LoginPage = () => {export default LoginPage```-### Server-side rendering (SSR) - withPageAuth+## Server-side rendering (SSR) - withPageAuthIf you wrap your `getServerSideProps` with `withPageAuth` your props object will be augmented with the user object.@@ -264,7 +264,7 @@ export const getServerSideProps = withPageAuth({})```-### Server-side data fetching with RLS+## Server-side data fetching with RLSBoth `withApiAuth` and `withPageAuth` return a supabase client that you can use to run [row level security](https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security) authenticated queries server-side:@@ -297,7 +297,7 @@ export const getServerSideProps = withPageAuth({})```-### Server-side data fetching to OAuth APIs using `provider_token`+## Server-side data fetching to OAuth APIs using `provider_token`When using third-party auth providers, sessions are initiated with an additional `provider_token` field which is persisted as an HTTPOnly cookie upon logging in to enabled usage on the server side. The `provider_token` can be used to make API requests to the OAuth provider's API endpoints on behalf of the logged-in user. In the following example, we fetch the user's full profile from the third-party API during SSR using their id and auth token:diff --git a/apps/reference/docs/guides/with-nextjs.mdx b/apps/reference/docs/guides/with-nextjs.mdxindex 785328034c8..e9bb78385df 100644--- a/apps/reference/docs/guides/with-nextjs.mdx+++ b/apps/reference/docs/guides/with-nextjs.mdx@@ -61,6 +61,7 @@ Now we are going to set up the database schema. We can use the "User Managementor you can just copy/paste the SQL from below and run it yourself.<Tabs+ groupId="language"defaultValue="dashboard"values={[{label: 'Dashboard', value: 'dashboard'},@@ -172,6 +173,7 @@ We can use [`create-next-app`](https://nextjs.org/docs/getting-started) to initian app called `supabase-nextjs`:<Tabs+ groupId="language"defaultValue="js"values={[{label: 'JavaScript', value: 'js'},@@ -227,6 +229,7 @@ npm install @supabase/auth-helpers-react @supabase/auth-helpers-nextjs```<Tabs+ groupId="language"defaultValue="js"values={[{label: 'JavaScript', value: 'js'},@@ -333,6 +336,7 @@ export default HomeAfter a user is signed in we can allow them to edit their profile details and manage their account.<Tabs+ groupId="language"defaultValue="js"values={[{label: 'JavaScript', value: 'js'},@@ -646,6 +650,7 @@ photos and videos.Let's create an avatar widget for the user so that they can upload a profile photo. We can start by creating a new component:<Tabs+ groupId="language"defaultValue="js"values={[{label: 'JavaScript', value: 'js'},