> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# cancelMfaVerification

```ts theme={null}
function cancelMfaVerification(): void;
```

Cancels the current MFA verification flow.

Call this when the user dismisses the MFA UI without completing verification.
The original operation that triggered MFA will reject with an error.

## Returns

`void`

## Example

```typescript theme={null}
// In your MFA modal's cancel button handler
function MfaModal() {
  const handleCancel = () => {
    cancelMfaVerification();
    closeModal();
  };

  return <button onClick={handleCancel}>Cancel</button>;
}
```
