Skip to main content
Props for the VerifyMfaModal component.

See

VerifyMfaModal

Properties

PropertyTypeDescription
children?ReactNodeIf provided, will render the children instead of the default trigger button.
open?booleanWhether the modal is open. Note: if you set this, you must also set setIsOpen.
setIsOpen?(value: boolean) => voidA function to set the modal’s open state. Note: if you set this, you must also set open.
onCancel?() => voidA function to call when the verification is canceled.
onError?(error: Error) => voidA function to call when the verification errors.
onSuccess?(mfaCode: string) => voidA function to call when MFA is successful verified.