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

Function accessItemId

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

Source from the content-addressed store, hash-verified

177/** Where an OAuth-minted access token is stored in the default provider. The
178 * refresh token lives at the same id with a `:refresh` suffix. */
179const accessItemId = (owner: Owner, integration: IntegrationSlug, name: ConnectionName): string =>
180 `oauth:${owner}:${integration}:${name}`;
181const refreshItemIdFor = (accessId: string): string => `${accessId}:refresh`;
182
183/** Order-preserving de-duplication of a scope list. */

Callers 1

mintFromTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected