Skip to main content
Props for the VerifyMfa component.

Extends

  • Omit<HTMLAttributes<HTMLDivElement>, "children" | "onSubmit" | "onError">

Properties

PropertyTypeDescription
children?| ReactNode | (state: VerifyMfaState) => ReactNodeThe 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) => voidA function to call when the verification is successful.
onError?(error: | Error | APIError) => voidA function to call when the verification errors.