(scopes: string[] | undefined)
| 36 | * @private Only call this if you're OAuth / auth related code! |
| 37 | */ |
| 38 | export function shouldUseClaudeAIAuth(scopes: string[] | undefined): boolean { |
| 39 | return Boolean(scopes?.includes(CLAUDE_AI_INFERENCE_SCOPE)) |
| 40 | } |
| 41 | |
| 42 | export function parseScopes(scopeString?: string): string[] { |
| 43 | return scopeString?.split(' ').filter(Boolean) ?? [] |
no outgoing calls
no test coverage detected