MCPcopy
hub / github.com/ericc-ch/copilot-api / runAuth

Function runAuth

src/auth.ts:15–26  ·  view source on GitHub ↗
(options: RunAuthOptions)

Source from the content-addressed store, hash-verified

13}
14
15export async function runAuth(options: RunAuthOptions): Promise<void> {
16 if (options.verbose) {
17 consola.level = 5
18 consola.info("Verbose logging enabled")
19 }
20
21 state.showToken = options.showToken
22
23 await ensurePaths()
24 await setupGitHubToken({ force: true })
25 consola.success("GitHub token written to", PATHS.GITHUB_TOKEN_PATH)
26}
27
28export const auth = defineCommand({
29 meta: {

Callers 1

runFunction · 0.85

Calls 2

ensurePathsFunction · 0.90
setupGitHubTokenFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…