MCPcopy
hub / github.com/codeaashu/claude-code / shouldUseClaudeAIAuth

Function shouldUseClaudeAIAuth

src/services/oauth/client.ts:38–40  ·  view source on GitHub ↗
(scopes: string[] | undefined)

Source from the content-addressed store, hash-verified

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

Callers 7

getAuthTokenSourceFunction · 0.85
saveOAuthTokensIfNeededFunction · 0.85
isClaudeAISubscriberFunction · 0.85
installOAuthTokensFunction · 0.85
authLoginFunction · 0.85
handleSuccessRedirectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected