mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: homepage auth snippet (#19108)
This commit is contained in:
1 parent
677c0252a0
commit
77c68e91b5
3 files changed
+3
-3
No files matched your search
@@ -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',
|
||||
})
|
||||
|
||||
@@ -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',
|
||||
})
|
||||
|
||||
@@ -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',
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user