children? | | ReactNode | (state: 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> |
onSuccess? | (mfaCode: string) => void | A function to call when the verification is successful. |
onError? | (error: | Error | APIError) => void | A function to call when the verification errors. |