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

Function loadOAuthClientRow

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

Source from the content-addressed store, hash-verified

1746 `${row.owner}:${row.subject}:${row.integration}:${row.name}`;
1747
1748 const loadOAuthClientRow = (
1749 owner: Owner,
1750 slug: string,
1751 ): Effect.Effect<OAuthClientRow | null, StorageFailure> =>
1752 core.findFirst("oauth_client", {
1753 where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)),
1754 });
1755
1756 /** What drove a refresh: the pre-call expiry check (`proactive`), or an
1757 * 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