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

Function connection

packages/react/src/plugins/oauth-reconnect.test.ts:26–37  ·  view source on GitHub ↗
(overrides: Partial<Connection> = {})

Source from the content-addressed store, hash-verified

24} from "./oauth-reconnect";
25
26const connection = (overrides: Partial<Connection> = {}): Connection => ({
27 owner: "user",
28 name: ConnectionName.make("personal-github"),
29 integration: IntegrationSlug.make("github"),
30 template: AuthTemplateSlug.make("oauth"),
31 provider: ProviderKey.make("default"),
32 address: ConnectionAddress.make("tools.github.user.personal-github"),
33 identityLabel: "Personal GitHub",
34 expiresAt: 123,
35 oauthClient: OAuthClientSlug.make("github-app"),
36 ...overrides,
37});
38
39describe("reconnectMode (OAuth vs non-OAuth branch)", () => {
40 // The single field `oauthClient` decides the path: OAuth connections must

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected