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

Function clientSecretItemId

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

Source from the content-addressed store, hash-verified

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

Callers 1

createClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected