useConfirmPasswordReset
Complete a reset from the emailed oobCode.
Runs on the page your reset email links to, using the oobCode from the URL.
const { confirm, verifyCode, isSuccess, error } = useConfirmPasswordReset();
const check = await verifyCode(oobCode); // { success: true, email: "a@b.c" }
await confirm(oobCode, newPassword);Returns
confirm(oobCode, newPassword) resolves to { success: true } or a failure result.
verifyCode(oobCode) optionally checks the code first and resolves to { success: true, email }, so the page can show whose password is being reset before asking for a new one.
Also exposes status, isPending, isSuccess, error, and reset.
All three emailed links land on one URL — see One page for every emailed link for the page that dispatches on mode.