From 77c68e91b5c0a28024a36899c9dd8a4ef3e4381f Mon Sep 17 00:00:00 2001 From: Ant Wilson Date: Tue, 21 Nov 2023 01:18:52 +0700 Subject: [PATCH] fix: homepage auth snippet (#19108) --- 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 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({ 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 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({ 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 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({ email: 'example@email.com', password: 'example-password', })