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

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

watchEffect(() => {
  console.log(
    needsEmailVerification.value,
    isLoading.value,
    isSuccess.value,
    isError.value,
    error.value
  )
})

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

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

Parameters


options optional NestedRefOfValue<undefined | SignUpOptions>