auth.provider API
    Preparing search index...

    Function checkTrustedProxyEntry

    • Returns null when value is a usable trusted-proxy entry, otherwise the reason it is not.

      Mirrors the checkCanonicalIssuer / describeIssuerRejection pair in ../issuer/canonical.mjs: the check is reusable from a Zod superRefine (which needs the reason to build a per-index issue) and from a plain throw site (which needs the sentence).

      Parameters

      • value: unknown

      Returns TrustedProxyEntryRejection | null