Firebase Hooksv0.2.0

useSendEmailVerification

The resend-verification-email button.

Sends, or re-sends, the verification email to the signed-in user.

const { send, loading, success } = useSendEmailVerification();

<button onClick={send} disabled={loading}>
  Resend verification email
</button>;

Returns

send() resolves to { success: true } or a failure result. Also exposes loading, error, and success.

Notes

Pair with a cooldown to stop rapid re-sends — Firebase rate-limits these, and hitting the limit is a worse experience than a disabled button.

Options

Prop

Type

On this page