MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / refreshBlocking

Function refreshBlocking

apps/cloud/src/auth/jwks-cache.ts:338–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336
337 /** A refresh the caller waits on — the only kind that costs it latency. */
338 const refreshBlocking = (): Promise<CacheEntry> => {
339 blockingFetchCount += 1;
340 return refresh();
341 };
342
343 const ensureFresh = async (forceRefresh: boolean): Promise<CacheEntry> => {
344 if (forceRefresh) return refreshBlocking();

Callers 1

ensureFreshFunction · 0.85

Calls 1

refreshFunction · 0.70

Tested by

no test coverage detected