bothy-sdk
    Preparing search index...

    Function jwksFetcher

    • Builds the JwksFetcher of a client: getJwks with the max-age of its Cache-Control (the server sends agent.jwks_max_age).

      Parameters

      • client: Pick<Client<paths>, "GET">

        A client of the public API, for example of createApiClient; only GET is used.

      Returns JwksFetcher

      The fetcher; it throws the typed ProblemError of a failed answer.

      const verifier = new InvocationVerifier({ instanceId, agentId, jwks: jwksFetcher(api), replay });