Skip to main content

useSignUpEmailPassword()

Overload 1 of 2

Use the hook useSignUpEmailPassword to sign up a user using email and password.

const {
signUpEmailPassword,
needsEmailVerification,
isLoading,
isSuccess,
isError,
error
} = useSignUpEmailPassword()

console.log({ needsEmailVerification, isLoading, isSuccess, isError, error })

const handleFormSubmit = async (e) => {
e.preventDefault()

await signUpEmailPassword('joe@example.com', 'secret-password')
}

Parameters


options optional SignUpOptions


Overload 2 of 2

Use the hook useSignUpEmailPassword to sign up a user using email and password.

const {
signUpEmailPassword,
needsEmailVerification,
isLoading,
isSuccess,
isError,
error
} = useSignUpEmailPassword()

console.log({ needsEmailVerification, isLoading, isSuccess, isError, error })

const handleFormSubmit = async (e) => {
e.preventDefault()

await signUpEmailPassword('joe@example.com', 'secret-password')
}

Parameters


email optional string


password optional string


options optional SignUpOptions