Next.js
useSignUpEmailPassword()
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