Skip to main content
A hook for cancelling an in-progress MFA verification flow. Call cancelMfaVerification when the user dismisses the MFA UI without completing verification. This will reject the original operation that triggered MFA with a “cancelled” error.

Returns

An object containing the cancelMfaVerification function.

Example