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

Function clientSecretItemId

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

Source from the content-addressed store, hash-verified

486/** Where an OAuth app's client secret is stored in the default writable
487 * provider — derived solely from the app's (owner, slug) identity. */
488const clientSecretItemId = (owner: Owner, slug: OAuthClientSlug): string =>
489 `oauth-client:${owner}:${slug}:secret`;
490
491const expiresAtFrom = (token: OAuth2TokenResponse): number | null =>
492 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