Skip to content

signUp()

Use nhost.auth.signUp to sign up a user using email and password. If you want to sign up a user using passwordless email (Magic Link), SMS, or an OAuth provider, use the signIn function instead.

nhost.auth.signUp({
email: 'joe@example.com',
password: 'secret-password'
})

params required SignUpParams requestOptions optional RequestOptions


nhost.auth.signUp({
email: 'joe@example.com',
password: 'secret-password'
})

Sign up with an email and password and custom headers

Section titled “Sign up with an email and password and custom headers”
nhost.auth.signUp(
{
email: 'joe@example.com',
password: 'secret-password'
},
{
headers: {
'x-cf-turnstile-response': turnstileResponse
}
}
)
nhost.auth.signUp({
email: 'joe@example.com',
securityKey: true
})
@docs https://docs.nhost.io/reference/deprecated/javascript/auth/sign-up