The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Auth view name is wrong
Steven Roussey95b1b32e75ee
diff --git a/examples/nextjs-with-supabase-auth/pages/index.js b/examples/nextjs-with-supabase-auth/pages/index.jsindex 5ae1ee01a08..603f4cc8e02 100644--- a/examples/nextjs-with-supabase-auth/pages/index.js+++ b/examples/nextjs-with-supabase-auth/pages/index.js@@ -18,7 +18,7 @@ const Index = () => {useEffect(() => {const { data: authListener } = supabase.auth.onAuthStateChange((event, session) => {- if (event === 'PASSWORD_RECOVERY') setAuthView('update_password')+ if (event === 'PASSWORD_RECOVERY') setAuthView('forgotten_password')if (event === 'USER_UPDATED') setTimeout(() => setAuthView('sign_in'), 1000)// Send session to /api/auth route to set the auth cookie.// NOTE: this is only needed if you're doing SSR (getServerSideProps)!@@ -55,7 +55,7 @@ const Index = () => {return (<Space direction="vertical" size={6}>- {authView === 'update_password' && <Auth.UpdatePassword supabaseClient={supabase} />}+ {authView === 'forgotten_password' && <Auth.UpdatePassword supabaseClient={supabase} />}{user && (<><Typography.Text>You're signed in</Typography.Text>