The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Updated NextJS "Client-side data fetching with RLS" Documentation
Paul101a491ec3ca
diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdxindex 3b093bd91b4..4d450f7d48b 100644--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx@@ -185,7 +185,8 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {For [row level security](/docs/learn/auth-deep-dive/auth-row-level-security) to work properly when fetching data client-side, you need to make sure to use the `supabaseClient` from the `useSupabaseClient` hook and only run your query once the user is defined client-side in the `useUser()` hook:```jsx lines=10-17-import { Auth, ThemeSupa } from '@supabase/auth-ui-react'+import { Auth } from '@supabase/auth-ui-react'+import { ThemeSupa } from '@supabase/auth-ui-shared'import { useUser, useSupabaseClient } from '@supabase/auth-helpers-react'import { useEffect, useState } from 'react'