> ## 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.

# VerifyMfaProps

Props for the VerifyMfa component.

## Extends

* `Omit`\<`HTMLAttributes`\<`HTMLDivElement`>, `"children"` | `"onSubmit"` | `"onError"`>

## Properties

| Property                          | Type                                                                                                                                     | Description                                                                                                                                                                                                                                                                                                                                         |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="children" /> `children?`   | \| `ReactNode` \| (`state`: [`VerifyMfaState`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/VerifyMfaState)) => `ReactNode` | The children of the component. Leave empty to use the default verification UI. If a function is provided, it will be called with the current state of the verification flow. The function should return a `ReactNode`. **Example** `<VerifyMfa> {(state) => ( <> <VerifyMfaTitle /> <VerifyMfaDescription /> <VerifyMfaFlow /> </> )} </VerifyMfa>` |
| <a id="onsuccess" /> `onSuccess?` | (`mfaCode`: `string`) => `void`                                                                                                          | A function to call when the verification is successful.                                                                                                                                                                                                                                                                                             |
| <a id="onerror" /> `onError?`     | (`error`: \| `Error` \| [`APIError`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-core/Classes/APIError)) => `void`                          | A function to call when the verification errors.                                                                                                                                                                                                                                                                                                    |
