Use the composable useSendVerificationEmail to send a verification email. The verification email is sent to the user’s email address and includes a link to verify the email address.

const { sendEmail, isLoading, isSent, isError, error } =
  useSendVerificationEmail()

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

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

  await sendEmail({
    email: 'joe@example.com'
  })
}

Parameters


options optional NestedRefOfValue<undefined | SendVerificationEmailOptions>