ping-identity
    Preparing search index...

    Type Alias OathPolicyEvaluatorConfig

    Configuration for configureOathPolicyEvaluator.

    const evaluator = configureOathPolicyEvaluator({
    policies: [{ kind: 'biometricAvailable' }, { kind: 'deviceTampering' }],
    });
    const client = await createOathClient({ policyEvaluator: evaluator });
    type OathPolicyEvaluatorConfig = {
        loggerId?: string;
        policies: OathMfaPolicy[];
    }
    Index

    Properties

    Properties

    loggerId?: string

    Optional native logger id to use for the evaluator.

    When omitted, the evaluator inherits the logger supplied to OathClientConfig.logger at client-creation time (Amendment 6 wiring). Pass an explicit id here only when you need a different log channel for policy evaluation.

    policies: OathMfaPolicy[]

    Non-empty list of OATH policies the evaluator will enforce.

    Throws an argument_error when empty or when a kind is not in the OathMfaPolicy union.