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

# VerifyMfaContextValue

The context value for the VerifyMfa component.

## See

[useVerifyMfaContext](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Hooks/useVerifyMfaContext)

## Properties

| Property                          | Type                                                                                                          | Description                                           |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| <a id="onsuccess" /> `onSuccess?` | (`mfaCode`: `string`) => `void`                                                                               | The function to call when verification is successful. |
| <a id="onerror" /> `onError?`     | (`error`: `Error`) => `void`                                                                                  | The function to call when verification errors.        |
| <a id="state" /> `state`          | [`VerifyMfaState`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/VerifyMfaState)                  | The current state of the verification flow.           |
| <a id="dispatch" /> `dispatch`    | `Dispatch`\<[`VerifyMfaAction`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Type-Aliases/VerifyMfaAction)> | The dispatch function to update the state.            |
