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

Function clientSecretItemId

packages/core/sdk/src/oauth-service.ts:396–397  ·  view source on GitHub ↗
(owner: Owner, slug: OAuthClientSlug)

Source from the content-addressed store, hash-verified

394/** Where an OAuth app's client secret is stored in the default writable
395 * provider — derived solely from the app's (owner, slug) identity. */
396const clientSecretItemId = (owner: Owner, slug: OAuthClientSlug): string =>
397 `oauth-client:${owner}:${slug}:secret`;
398
399const expiresAtFrom = (token: OAuth2TokenResponse): number | null =>
400 typeof token.expires_in === "number" ? Date.now() + token.expires_in * 1000 : null;

Callers 2

createClientFunction · 0.85
removeClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected