Skip to main content
Props for the EnrollMfa component.

Extends

  • Omit<HTMLAttributes<HTMLDivElement>, "children">

Properties

PropertyTypeDescription
children?| ReactNode | (state: EnrollMfaState) => ReactNodeThe children of the component. Leave empty to use the default enrollment UI. If a function is provided, it will be called with the current state of the enrollment flow. The function should return a ReactNode. Example <EnrollMfa> {(state) => ( <> <EnrollMfaTitle /> <EnrollMfaDescription /> <EnrollMfaFlow /> </> )} </EnrollMfa>
onEnrollSuccess?() => voidA function to call when the enrollment is successful.
resetOnSuccess?booleanWhether to reset the enrollment state when the enrollment is successful. Defaults to true.