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

Function loadOAuthClientRow

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

Source from the content-addressed store, hash-verified

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