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

Function loadOAuthClientRow

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

Source from the content-addressed store, hash-verified

1494 `${row.owner}:${row.subject}:${row.integration}:${row.name}`;
1495
1496 const loadOAuthClientRow = (
1497 owner: Owner,
1498 slug: string,
1499 ): Effect.Effect<OAuthClientRow | null, StorageFailure> =>
1500 core.findFirst("oauth_client", {
1501 where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)),
1502 });
1503
1504 /** What drove a refresh: the pre-call expiry check (`proactive`), or an
1505 * upstream 401 on a token we believed was still valid (`reactive`). */

Callers 1

performTokenRefreshFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected