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

Function loadOAuthClientRow

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

Source from the content-addressed store, hash-verified

1471 `${row.owner}:${row.subject}:${row.integration}:${row.name}`;
1472
1473 const loadOAuthClientRow = (
1474 owner: Owner,
1475 slug: string,
1476 ): Effect.Effect<OAuthClientRow | null, StorageFailure> =>
1477 core.findFirst("oauth_client", {
1478 where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)),
1479 });
1480
1481 // Perform the actual refresh-token grant and persist the rotated material.
1482 const performTokenRefresh = (

Callers 1

performTokenRefreshFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected