MCPcopy Create free account
hub / github.com/github/copilot-sdk / createAuthenticatedClient

Function createAuthenticatedClient

nodejs/test/e2e/rpc_server.e2e.test.ts:16–23  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

14 const { copilotClient: client, openAiEndpoint, env, workDir } = await createSdkTestContext();
15
16 function createAuthenticatedClient(token: string): CopilotClient {
17 return createClientWithEnv(
18 {
19 COPILOT_DEBUG_GITHUB_API_URL: env.COPILOT_API_URL,
20 },
21 token
22 );
23 }
24
25 function createClientWithEnv(
26 extraEnv: Record<string, string | undefined>,

Callers 1

Calls 1

createClientWithEnvFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…