Skip to content

useSendVerificationEmail()

Use the hook 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()
console.log({ isLoading, isSent, isError, error })
const handleFormSubmit = async (e) => {
e.preventDefault()
await sendEmail({
email: 'joe@example.com'
})
}

options optional SendVerificationEmailOptions