The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
updated the let to const (#18185)
Shishiroe16a1b485099
diff --git a/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts b/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.tsindex f810bf1248a..570ef68cdbb 100644--- a/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts+++ b/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts@@ -69,7 +69,7 @@ const supabase = createClient(SUPABASE_URL, process.env.SUPABASE_KEY);`,After they have signed up, all interactions using the Supabase client will be performed as "that user".`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.signUp({+const { data, error } = await supabase.auth.signUp({email: '[email protected]',password: 'some-secure-password'})`,@@ -91,7 +91,7 @@ If an account is created, users can login to your app.After they have logged in, all interactions using the Supabase JS client will be performed as "that user".`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.signInWithPassword({+const { data, error } = await supabase.auth.signInWithPassword({email: '[email protected]',password: 'some-secure-password'})@@ -115,7 +115,7 @@ Send a user a passwordless link which they can use to redeem an access_token.After they have clicked the link, all interactions using the Supabase JS client will be performed as "that user".`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.signInWithOtp({+const { data, error } = await supabase.auth.signInWithOtp({email: '[email protected]'})`,@@ -139,7 +139,7 @@ The user will receive a mobile OTP via sms with which they can verify that theyYou must enter your own twilio credentials on the auth settings page to enable sms confirmations.`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.signUp({+const { data, error } = await supabase.auth.signUp({phone: '+13334445555',password: 'some-password'})@@ -163,7 +163,7 @@ SMS OTPs work like magic links, except you have to provide an interface for theYou must enter your own twilio credentials on the auth settings page to enable SMS-based Logins.`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.signInWithOtp({+const { data, error } = await supabase.auth.signInWithOtp({phone: '+13334445555'})`,@@ -185,7 +185,7 @@ Once the user has received the OTP, have them enter it in a form and send it forYou must enter your own twilio credentials on the auth settings page to enable SMS-based OTP verification.`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.verifyOtp({+const { data, error } = await supabase.auth.verifyOtp({phone: '+13334445555',token: '123456',type: 'sms'@@ -215,7 +215,7 @@ After they have logged in, all interactions using the Supabase JS client will beGenerate your Client ID and secret from: [Google](https://console.developers.google.com/apis/credentials), [Github](https://github.com/settings/applications/new), [Gitlab](https://gitlab.com/oauth/applications), [Facebook](https://developers.facebook.com/apps), and [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud).`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.signInWithOAuth({+const { data, error } = await supabase.auth.signInWithOAuth({provider: 'github'})`,@@ -241,7 +241,7 @@ curl -X GET '${endpoint}/auth/v1/user' \\title: `Forgot password / email`,description: `Sends the user a log in link via email. Once logged in you should direct the user to a new password form. And use "Update User" below to save the new password.`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.resetPasswordForEmail(email)+const { data, error } = await supabase.auth.resetPasswordForEmail(email)`,bash: (apikey?: string, endpoint?: string) => `curl -X POST '${endpoint}/auth/v1/recover' \\@@ -284,7 +284,7 @@ curl -X PUT '${endpoint}/auth/v1/user' \\title: `Log out`,description: `After calling log out, all interactions using the Supabase JS client will be "anonymous".`,js: (apikey?: string, endpoint?: string) => `-let { error } = await supabase.auth.signOut()+const { error } = await supabase.auth.signOut()`,bash: (apikey?: string, endpoint?: string) => `curl -X POST '${endpoint}/auth/v1/logout' \\@@ -304,7 +304,7 @@ After they have clicked the link, all interactions using the Supabase JS clientThis endpoint requires you use the \`service_role_key\` when initializing the client, and should only be invoked from the server, never from the client.`,js: (apikey?: string, endpoint?: string) => `-let { data, error } = await supabase.auth.api.inviteUserByEmail('[email protected]')+const { data, error } = await supabase.auth.api.inviteUserByEmail('[email protected]')`,bash: (apikey?: string, endpoint?: string) => `curl -X POST '${endpoint}/auth/v1/invite' \\