MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAuthTokenSourceResolution

Function getAuthTokenSourceResolution

src/utils/statusNoticeDefinitions.tsx:76–94  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

74}
75
76function getAuthTokenSourceResolution(source: string): string {
77 if (source === 'claude.ai') {
78 return 'Run `ncode auth logout` to sign out of managed OAuth.';
79 }
80
81 if (source === 'apiKeyHelper') {
82 return 'Unset the apiKeyHelper setting.';
83 }
84
85 if (
86 source === 'ANTHROPIC_AUTH_TOKEN' ||
87 source === 'CLAUDE_CODE_OAUTH_TOKEN' ||
88 source === 'CLAUDE_CODE_SESSION_ACCESS_TOKEN'
89 ) {
90 return `Unset the ${source} environment variable.`;
91 }
92
93 return `Remove or unset the ${source} credential source.`;
94}
95
96export function getManagedSubscriberCredentialConflictSource(
97 session: ConflictSession,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected