Skip to main content
Options for the useVerifyMfaModal hook.

Extends

Properties

PropertyTypeDescriptionInherited from
closeOnSuccessDelay?null | numberThe delay in milliseconds before the modal is closed after successful verification. If null, the modal will not close automatically after success. If 0, the modal closes immediately. Defaults to 500ms. Default 500-
onError?(error: Error) => voidA function to call when the verification errors.Pick.onError
onCancel?() => voidA function to call when the verification is canceled.Pick.onCancel
onSuccess?(mfaCode: string) => voidA function to call when MFA is successful verified.Pick.onSuccess