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

# UseVerifyMfaModalOptions

Options for the useVerifyMfaModal hook.

## Extends

* `Pick`\<[`VerifyMfaModalProps`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/VerifyMfaModalProps), `"onCancel"` | `"onError"` | `"onSuccess"`>

## Properties

| Property                                              | Type                            | Description                                                                                                                                                                                                                     | Inherited from   |
| ----------------------------------------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| <a id="closeonsuccessdelay" /> `closeOnSuccessDelay?` | `null` \| `number`              | The delay in milliseconds before the modal is closed after successful verification. If `null`, the modal will not close automatically after success. If `0`, the modal closes immediately. Defaults to 500ms. **Default** `500` | -                |
| <a id="onerror" /> `onError?`                         | (`error`: `Error`) => `void`    | A function to call when the verification errors.                                                                                                                                                                                | `Pick.onError`   |
| <a id="oncancel" /> `onCancel?`                       | () => `void`                    | A function to call when the verification is canceled.                                                                                                                                                                           | `Pick.onCancel`  |
| <a id="onsuccess" /> `onSuccess?`                     | (`mfaCode`: `string`) => `void` | A function to call when MFA is successful verified.                                                                                                                                                                             | `Pick.onSuccess` |
