From 69b9b0820d410bfd2ed32921d5fd9e0550c4987f Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 16 Aug 2022 12:39:05 +0200 Subject: [PATCH] Updates some of the homepage examples --- apps/www/data/CodeExamples.ts | 2 +- apps/www/data/home/api-examples.js | 2 +- apps/www/data/products/auth/auth-api-examples.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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({ email: 'example@email.com', 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({ email: 'example@email.com', 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({ email: 'example@email.com', password: 'example-password', })