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

Function loadOAuthClientRow

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

Source from the content-addressed store, hash-verified

2120 JSON.stringify([tenant, row.owner, row.subject, row.integration, row.name]);
2121
2122 const loadOAuthClientRow = (
2123 owner: Owner,
2124 slug: string,
2125 ): Effect.Effect<OAuthClientRow | null, StorageFailure> =>
2126 core.findFirst("oauth_client", {
2127 where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)),
2128 });
2129
2130 // Config-declared first-party apps, keyed by prefixed slug — the refresh
2131 // path's counterpart to the OAuth service's config-first resolution.

Callers 2

performTokenRefreshFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected