@request-seal/core API
    Preparing search index...

    Function fetch

    • Fetch a discovery key set with bounded HTTPS, address, and redirect policies, unconditionally. A validators option is accepted and ignored, so this function wires directly as a cache's fetch callback; use fetchWithValidators for conditional revalidation.

      Parameters

      • source: unknown
      • input: unknown = {}

      Returns Promise<
          Result<
              Readonly<
                  {
                      etag: string
                      | null;
                      expiresAt: number;
                      fetchedAt: number;
                      keys: Readonly<Record<string, Resolution>>;
                      lookup: (
                          keyId: unknown,
                          algorithms: unknown,
                          now?: number,
                      ) => Promise<
                          Result<
                              Readonly<
                                  {
                                      algorithm: SigningAlgorithm;
                                      assertedAlgorithm: JwsAlgorithm
                                      | null;
                                      expiresAt: number;
                                      fetchedAt: number;
                                      key: PublicKey;
                                      keyId: string;
                                      location: string;
                                      origin: string;
                                      proof: "signed" | "unsigned" | "not_applicable";
                                      revision: string | null;
                                      sourceType: "directory" | "jwks_uri" | "cimd";
                                      thumbprint: string;
                                  },
                              >,
                          >,
                      >;
                      origin: string;
                      proof: "signed"
                      | "unsigned"
                      | "not_applicable";
                      revision: string;
                      source: DiscoverySource;
                  },
              >,
          >,
      >