Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: homepage auth snippet (#19108)

Ant Wilson77c68e91b5c0
diff --git a/apps/www/data/CodeExamples.ts b/apps/www/data/CodeExamples.ts
index 2e81a24c2c9..e1002e9cbd0 100644
--- a/apps/www/data/CodeExamples.ts
+++ b/apps/www/data/CodeExamples.ts
@@ -23,7 +23,7 @@ export const createUserExample: ExampleProps = {
const supabase = createClient(supabaseUrl, supabaseKey)
// Create a new user
- const { user, error } = await supabase.auth.signUpWithPassword({
+ const { user, error } = await supabase.auth.signUp({
password: 'example-password',
})
diff --git a/apps/www/data/home/api-examples.js b/apps/www/data/home/api-examples.js
index 0202942bc78..17c26c989f7 100644
--- a/apps/www/data/home/api-examples.js
+++ b/apps/www/data/home/api-examples.js
@@ -11,7 +11,7 @@ const supabaseKey = 'public-anon-key'
const supabase = createClient(supabaseUrl, supabaseKey)
// Create a new user
-const { user, error } = await supabase.auth.signUpWithPassword({
+const { user, error } = await supabase.auth.signUp({
password: 'example-password',
})
diff --git a/apps/www/data/products/auth/auth-api-examples.js b/apps/www/data/products/auth/auth-api-examples.js
index 937296ac1fd..fa745dd414f 100644
--- a/apps/www/data/products/auth/auth-api-examples.js
+++ b/apps/www/data/products/auth/auth-api-examples.js
@@ -5,7 +5,7 @@ export default [
description: '',
code: `
// Sign up with email
- const { user, error } = await supabase.auth.signUpWithPassword({
+ const { user, error } = await supabase.auth.signUp({
password: 'example-password',
})