(source: string)
| 74 | } |
| 75 | |
| 76 | function 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 | |
| 96 | export function getManagedSubscriberCredentialConflictSource( |
| 97 | session: ConflictSession, |
no outgoing calls
no test coverage detected