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

Function getConfiguredProviderAuthToken

src/utils/model/providerConfig.ts:385–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383}
384
385export function getConfiguredProviderAuthToken(): string | undefined {
386 const provider = getActiveProviderConfig()
387 const authTokenEnv = provider.authTokenEnv
388 const configuredToken = authTokenEnv ? process.env[authTokenEnv] : undefined
389 if (configuredToken) {
390 return configuredToken
391 }
392
393 return getConfiguredGitHubProviderAuthToken(provider.type)
394}
395
396export function getConfiguredProviderSecretEnvNames(): string[] {
397 const provider = getActiveProviderConfig()

Callers 6

getAuthHeadersFunction · 0.85
isAnthropicAuthEnabledFunction · 0.85
getAuthTokenSourceFunction · 0.85
getAnthropicClientFunction · 0.85
configureApiKeyHeadersFunction · 0.85

Tested by

no test coverage detected