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

Function accessItemId

packages/core/sdk/src/oauth-service.ts:276–277  ·  view source on GitHub ↗
(owner: Owner, integration: IntegrationSlug, name: ConnectionName)

Source from the content-addressed store, hash-verified

274/** Where an OAuth-minted access token is stored in the default provider. The
275 * refresh token lives at the same id with a `:refresh` suffix. */
276const accessItemId = (owner: Owner, integration: IntegrationSlug, name: ConnectionName): string =>
277 `oauth:${owner}:${integration}:${name}`;
278const refreshItemIdFor = (accessId: string): string => `${accessId}:refresh`;
279
280/** The item a refresh writes to prove the credential store will ACCEPT a write,

Callers 2

mintFromTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected