Firebase Hooksv0.2.0

useSendPasswordResetEmail

The forgot-password email.

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

await send(email);

{
  success && <p>If an account exists for {email}, a reset link is on its way.</p>;
}

Returns

send(email) resolves to { success: true } or a failure result.

success flips true after a send. resetState clears both flags — useful for a retry-with-a-different-address form. Also exposes loading and error.

Notes

Phrase the confirmation so it doesn't reveal whether an account exists, as above.

Options

Prop

Type

On this page