The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
changed supabase variable formatting
Ollie Halliday80c6c77cb51d
diff --git a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdxindex 54392e03f1c..1d07fb9db94 100644--- a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx@@ -34,7 +34,10 @@ Pass `supabaseClient` from `@supabase/supabase-js` as a prop to the component.import { createClient } from '@supabase/supabase-js'import { Auth } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => <Auth supabaseClient={supabase} />```@@ -43,14 +46,17 @@ This renders the Auth component without any styling.We recommend using one of the predefined themes to style the UI.Import the theme you want to use and pass it to the `appearence.theme` prop.-```js lines=4,13 title=/src/index.js+```js lines=4,16 title=/src/index.jsimport {Auth,// Import predefined themeThemeSupa,} from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth@@ -65,11 +71,14 @@ const App = () => (The Auth component also supports login with [offical social providers](../../auth#providers).-```js lines=10 title=/src/index.js+```js lines=13 title=/src/index.jsimport { createClient } from '@supabase/supabase-js'import { Auth, ThemeSupa } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth@@ -95,11 +104,14 @@ There are several ways to customize Auth UI:Auth UI comes with several themes to customize the appearance. Each predefined theme comes with at least two variations, a `default` variation, and a `dark` variation. You can switch between these themes using the `theme` prop. Import the theme you want to use and pass it to the `appearence.theme` prop.-```js lines=2,10 title=/src/index.js+```js lines=2,13 title=/src/index.jsimport { createClient } from '@supabase/supabase-js'import { Auth, ThemeSupa } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth@@ -120,11 +132,14 @@ Currently there is only one predefined theme available, but we plan to add more.Auth UI comes with two theme variations: `default` and `dark`. You can switch between these themes with the `theme` prop.-```js lines=11 title=/src/index.js+```js lines=14 title=/src/index.jsimport { createClient } from '@supabase/supabase-js'import { Auth, ThemeSupa } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth@@ -142,11 +157,14 @@ If you don't pass a value to `theme` it uses the `"default"` theme. You can passAuth UI themes can be overridden using variable tokens. See the [list of variable tokens](https://github.com/supabase-community/auth-ui/blob/main/packages/react/common/theming/Themes.tsx).-```js lines=11-18 title=/src/index.js+```js lines=14-21 title=/src/index.jsimport { createClient } from '@supabase/supabase-js'import { Auth, ThemeSupa } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth@@ -229,7 +247,10 @@ You can use custom CSS classes for the following elements:import { createClient } from '@supabase/supabase-js'import { Auth } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth@@ -254,7 +275,10 @@ You can use custom CSS inline styles for the following elements:import { createClient } from '@supabase/supabase-js'import { Auth } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth@@ -278,7 +302,10 @@ You can use custom labels with `localization.variables`. See the [list of labelsimport { createClient } from '@supabase/supabase-js'import { Auth } from '@supabase/auth-ui-react'-const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')+const supabase = createClient(+ '<INSERT PROJECT URL>',+ '<INSERT PROJECT ANON API KEY>'+)const App = () => (<Auth