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

Function app

packages/react/src/lib/oauth-client-usage.test.ts:17–26  ·  view source on GitHub ↗
(slug: string, opts?: { readonly owner?: Owner })

Source from the content-addressed store, hash-verified

15
16// Minimal app summary builder — only the fields the helpers read matter.
17const app = (slug: string, opts?: { readonly owner?: Owner }): OAuthClientSummary => ({
18 owner: opts?.owner ?? "org",
19 slug: OAuthClientSlug.make(slug),
20 grant: "authorization_code",
21 authorizationUrl: "https://issuer.example.com/authorize",
22 tokenUrl: "https://issuer.example.com/token",
23 resource: null,
24 clientId: "client-id",
25 origin: { kind: "manual" },
26});
27
28// A connection optionally minted by an app (its `oauthClient` slug).
29const connection = (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected