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

Function loadOAuthClientRow

packages/core/sdk/src/executor.ts:1757–1763  ·  view source on GitHub ↗
(
      owner: Owner,
      slug: string,
    )

Source from the content-addressed store, hash-verified

1755 `${row.owner}:${row.subject}:${row.integration}:${row.name}`;
1756
1757 const loadOAuthClientRow = (
1758 owner: Owner,
1759 slug: string,
1760 ): Effect.Effect<OAuthClientRow | null, StorageFailure> =>
1761 core.findFirst("oauth_client", {
1762 where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)),
1763 });
1764
1765 // Config-declared first-party apps, keyed by prefixed slug — the refresh
1766 // path's counterpart to the OAuth service's config-first resolution.

Callers 1

performTokenRefreshFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected