auth.signUp()

Creates a new user.

const { user, error } = await supabase.auth.signUp({
email: 'example@email.com',
password: 'example-password',
})

Parameters

  • credentialsrequiredobject

    The user login details.

      Properties
    • emailrequiredstring

      The user's email address.

    • passwordrequiredstring

      The user's password.

Examples

Sign up

const { user, error } = await supabase.auth.signUp({
email: 'example@email.com',
password: 'example-password',
})