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

Function refreshGrants

packages/core/sdk/src/oauth-flow.test.ts:2597–2598  ·  view source on GitHub ↗
(requests: readonly { readonly path: string; readonly body: string }[])

Source from the content-addressed store, hash-verified

2595 });
2596
2597const refreshGrants = (requests: readonly { readonly path: string; readonly body: string }[]) =>
2598 requests.filter((r) => r.path === "/token" && r.body.includes("grant_type=refresh_token"));
2599
2600describe("reactive OAuth refresh on upstream 401", () => {
2601 it.effect(

Callers 1

oauth-flow.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected