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

Function loadOAuthClientRow

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

Source from the content-addressed store, hash-verified

1493 `${row.owner}:${row.subject}:${row.integration}:${row.name}`;
1494
1495 const loadOAuthClientRow = (
1496 owner: Owner,
1497 slug: string,
1498 ): Effect.Effect<OAuthClientRow | null, StorageFailure> =>
1499 core.findFirst("oauth_client", {
1500 where: (b: AnyCb) => b.and(byOwner(owner)(b), b("slug", "=", slug)),
1501 });
1502
1503 // Perform the actual refresh-token grant and persist the rotated material.
1504 const performTokenRefresh = (

Callers 1

performTokenRefreshFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected