Builds the JwksFetcher of a client: getJwks with the max-age of its Cache-Control (the server sends agent.jwks_max_age).
getJwks
max-age
Cache-Control
agent.jwks_max_age
A client of the public API, for example of createApiClient; only GET is used.
createApiClient
GET
The fetcher; it throws the typed ProblemError of a failed answer.
ProblemError
const verifier = new InvocationVerifier({ instanceId, agentId, jwks: jwksFetcher(api), replay }); Copy
const verifier = new InvocationVerifier({ instanceId, agentId, jwks: jwksFetcher(api), replay });
Builds the JwksFetcher of a client:
getJwkswith themax-ageof itsCache-Control(the server sendsagent.jwks_max_age).