MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / getEnvToken

Function getEnvToken

src/utils/github/ghAuthToken.ts:12–21  ·  view source on GitHub ↗
(envNames: string[])

Source from the content-addressed store, hash-verified

10const cachedTokens = new Map<GitHubTokenProvider, string | undefined>()
11
12function getEnvToken(envNames: string[]): string | undefined {
13 for (const envName of envNames) {
14 const value = process.env[envName]
15 if (value) {
16 return value
17 }
18 }
19
20 return undefined
21}
22
23function resolveGhAuthToken(provider: GitHubTokenProvider): string | undefined {
24 const envToken = getEnvToken([

Callers 1

resolveGhAuthTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected