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.
function VerifyMfa(props: VerifyMfaProps): Element;
A component for MFA verification. Prompts enrolled users to enter their
authenticator code.
Parameters
| Parameter | Type | Description |
|---|
props | VerifyMfaProps | The props for the component. |
Returns
Element
The rendered component.
Examples
// Default usage
<VerifyMfa onSuccess={(mfaCode) => console.log("Verified!", mfaCode)} />
// With custom UI
<VerifyMfa onSuccess={handleSuccess}>
{(state) => (
<>
<h2>Enter your code</h2>
<VerifyMfaFlow />
{state.error && <p className="error">{state.error}</p>}
</>
)}
</VerifyMfa>
Further reading