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

Function secretValue

packages/core/sdk/src/oauth-remove-client.test.ts:287–288  ·  view source on GitHub ↗
(store: ReadonlyMap<string, string>)

Source from the content-addressed store, hash-verified

285// Client-secret references are versioned per registration attempt; tests read
286// the current terminal `:secret` slot without assuming its attempt id.
287const secretValue = (store: ReadonlyMap<string, string>): string | undefined =>
288 [...store.entries()].find(([itemId]) => itemId.endsWith(":secret"))?.[1];
289
290/** The registration used by the secret-lifecycle tests below, parameterised only
291 * by the secret so each one can prove which incarnation's secret survived. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected