The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Merge branch 'master' into dng-docs-auth-ui
dannykng683bcc16c235
diff --cc apps/reference/docs/guides/auth/auth-helpers/auth-ui.mdxindex e0e162ca768,acdf96a1a99..f92a18f9322--- a/apps/reference/docs/guides/auth/auth-helpers/auth-ui.mdx+++ b/apps/reference/docs/guides/auth/auth-helpers/auth-ui.mdx@@@ -1,38 -1,28 +1,32 @@@----id: auth-ui-overview+id: auth-uititle: Auth UI-description: Securing your user data with Row Level Security.+description: A prebuilt, customizable React component for authenticating users.----# Auth UI+Auth UI is a pre-built React component for authenticating users.+It supports custom themes and extensible styles to match your brand and aesthetic.-Auth UI is a React component that provides a simple way to authenticate users.--It is currently only available for React, however it is planned to be available for other frameworks.--Auth UI relies on [@supabase/supabase-js](/docs/reference/javascript/next/). You need to also [install @supabase/supabase-js](/docs/reference/javascript/next/installing).+<video width="99%" muted playsInline controls="true">+ <source+ src="https://supabase.com/images/blog/lw5-one-more/auth-ui-demo.mp4"+ type="video/mp4"+ muted+ playsInline+ />+</video>-### Install via NPM+## Set up Auth UI- Auth UI relies on [supabase-js](/docs/reference/javascript/next/). Install the latest version:-Install the NPM package from @supabase/auth-ui-react++Install the latest version of [supabase-js](/docs/reference/javascript/next/) and the Auth UI package:```bash- npm install @supabase/supabase-js@rc- ```-- Install the Auth UI package:-- ```bash- npm install @supabase/auth-ui-react-npm install @supabase/auth-ui-react @supabase/supabase-js@rc++npm install @supabase/supabase-js@rc @supabase/auth-ui-react```-### Import Auth component+### Import the Auth component-The simplest way to use the component is to pass `supabaseClient` from @supabase/supabase-js as a prop to the component.+Pass `supabaseClient` from `@supabase/supabase-js` as a prop to the component.```js title="/src/index.js"import { createClient } from '@supabase/supabase-js'@@@ -53,9 -44,8 +47,9 @@@ Import the theme you want to use and pa```diff js title="/src/index.js"import {Auth,-+ ThemeSupa+ // highlight-next-line+ ThemeSupa- } from '@supabase/react-ui-react'+ } from '@supabase/auth-ui-react'const App = () => (<Auth@@@ -83,8 -82,7 +77,8 @@@ Auth UI comes with several themes to cu```js title="/src/index.js"import { createClient } from '@supabase/supabase-js'+//highlight-next-line- import { Auth, ThemeSupa } from '@supabase/react-ui-react'+ import { Auth, ThemeSupa } from '@supabase/auth-ui-react'const supabase = createClient('<INSERT PROJECT URL>',diff --cc apps/www/next.config.jsindex f0fbd013226,04056a8a04f..9e7acd3eb09--- a/apps/www/next.config.js+++ b/apps/www/next.config.js@@@ -1434,11 -1434,12 +1434,17 @@@ module.exports = withMDX(source: '/docs/guides/realtime/overview',destination: '/docs/guides/realtime',},+ {+ permanent: true,+ source: '/docs/reference/javascript/next/migration-guide',+ destination: '/docs/reference/javascript/next/release-notes',+ },+ {+ permanent: true,+ source: '/docs/guides/auth/auth-helpers/auth-ui-overview',+ destination: '/docs/guides/auth/auth-helpers/auth-ui',+ },+// V2 redirects// {// permanent: true,