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

Function loadOAuthClientRow

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

Source from the content-addressed store, hash-verified

1733 `${row.owner}:${row.subject}:${row.integration}:${row.name}`;
1734
1735 const loadOAuthClientRow = (
1736 owner: Owner,
1737 slug: string,
1738 ): Effect.Effect<OAuthClientRow | null, StorageFailure> =>
1739 core.findFirst("oauth_client", {
1740 where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)),
1741 });
1742
1743 /** What drove a refresh: the pre-call expiry check (`proactive`), or an
1744 * 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