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

Function refreshGrantsIn

packages/core/sdk/src/oauth-flow.test.ts:130–135  ·  view source on GitHub ↗
(
  requests: ReadonlyArray<{ readonly path: string; readonly body: string }>,
)

Source from the content-addressed store, hash-verified

128
129/** Every refresh-token grant the authorization server was asked for. */
130const refreshGrantsIn = (
131 requests: ReadonlyArray<{ readonly path: string; readonly body: string }>,
132) =>
133 requests.filter(
134 (request) => request.path === "/token" && request.body.includes("grant_type=refresh_token"),
135 );
136
137interface TokenEndpointCall {
138 readonly host: string;

Callers 1

oauth-flow.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected