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

Function isRefreshGrant

e2e/cloud/credential-write-durability.test.ts:397–404  ·  view source on GitHub ↗
(request: {
  readonly path: string;
  readonly method: string;
  readonly body: string;
})

Source from the content-addressed store, hash-verified

395/** Is this one of the authorization server's refresh grants? Counting them is
396 * how a "success" is shown to involve a real re-mint, not a cached token. */
397const isRefreshGrant = (request: {
398 readonly path: string;
399 readonly method: string;
400 readonly body: string;
401}) =>
402 request.path === "/token" &&
403 request.method === "POST" &&
404 request.body.includes("grant_type=refresh_token");
405
406scenario(
407 "Credential persistence · contention on the vault write does not lose the refreshed credential",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected