express-openid-connect
    Preparing search index...

    Class MtlsError

    Thrown when the mTLS (RFC 8705) configuration is invalid: useMtls: true without a customFetch, combined with clientSecret/clientAssertionSigningKey or an explicit clientAuthMethod, or when the discovery document lacks mtls_endpoint_aliases.

    Catch by error.code (a value from MtlsErrorCode) rather than instanceof to be bundler-safe.

    Hierarchy

    • Error
      • MtlsError
    Index
    • Parameters

      • code:
            | "mtls_requires_custom_fetch"
            | "mtls_endpoint_aliases_missing"
            | "mtls_incompatible_client_auth"
      • message: string

      Returns MtlsError

    code:
        | "mtls_requires_custom_fetch"
        | "mtls_endpoint_aliases_missing"
        | "mtls_incompatible_client_auth"
    name: "MtlsError"