FunctionuseUserMeetsMfaRequirement

  • React hook to check if the logged in user meets the MFA requirement of your application. Will throw an Error if used outside of the <MfaProvider /> component.

    Example

    import { useUserMeetsMfaRequirement } from '@oneblink/apps-react'

    const isMfaRequired = true

    function Component() {
    const userMeetsMfaRequirement =
    useUserMeetsMfaRequirement(isMfaRequired)
    }

    Parameters

    • isMfaRequired: boolean

    Returns boolean