useReauthenticate
The recent-sign-in check, standalone.
For custom sensitive flows beyond what useUpdatePassword, useUpdateEmail, and useDeleteAccount build in.
const { reauthenticateWithPassword } = useReauthenticate();
const check = await reauthenticateWithPassword(currentPassword);
if (check.success) await performSensitiveOperation();Returns
reauthenticateWithPassword(currentPassword) and reauthenticateWithProvider(provider) each resolve to { success: true } or a failure result. Also exposes loading and error.
When you need it
Firebase rejects sensitive operations when the sign-in is stale, with auth/requires-recent-login. Run one of these first, then retry the operation.
Use reauthenticateWithProvider for OAuth-only accounts, which have no password to check.