Skip to main content

useSendVerificationEmail()

Overload 1 of 2

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'
})
}

Parameters


options optional SendVerificationEmailOptions


Overload 2 of 2

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'
})
}

Parameters


email optional string


options optional SendVerificationEmailOptions