useUpdatePassword
Change the password, with reauthentication built in.
const { update, isPending, isSuccess, error } = useUpdatePassword();
await update(newPassword, { currentPassword }); // reauthenticates first
await update(newPassword); // no reauth — your callReturns
update(newPassword, { currentPassword? }) resolves to { success: true } or a failure result. Also exposes status, isPending, isSuccess, error, and reset.
Reauthentication
Firebase rejects sensitive operations on a stale sign-in. Pass currentPassword and the hook reauthenticates first.
Omit it and the change runs directly, so a stale session surfaces auth/requires-recent-login through code and cause — handle it with useReauthenticate.