Skip to content

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

Updates some of the homepage examples

Copple69b9b0820d41
diff --git a/apps/www/data/CodeExamples.ts b/apps/www/data/CodeExamples.ts
index e1002e9cbd0..2e81a24c2c9 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.signUp({
+ const { user, error } = await supabase.auth.signUpWithPassword({
password: 'example-password',
})
diff --git a/apps/www/data/home/api-examples.js b/apps/www/data/home/api-examples.js
index 2785259c96a..652cfaad0c5 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.signUp({
+const { user, error } = await supabase.auth.signUpWithPassword({
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 fa745dd414f..937296ac1fd 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.signUp({
+ const { user, error } = await supabase.auth.signUpWithPassword({
password: 'example-password',
})