signUp

Creates a new user.

Parameters

  • credentialsrequiredobject

    The user login details.

      Properties
    • passwordrequiredstring

      The user's password.

    • emailrequiredstring

      The user's email address.

Notes

  • A user can sign up either via email or OAuth.
  • If you provide email, password is also required
  • If you provide access_token, password is also required

Examples

Sign up

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