Skip to main content
Hook to imperatively control the MFA verification modal. This hook allows you to open and close the MFA verification modal programmatically, which is useful for integrating MFA verification into complex flows without using the <VerifyMfaModal /> component pattern.

Parameters

Returns

UseVerifyMfaModalReturn An object containing open and close functions.

Example