MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isClaudeAISubscriber

Function isClaudeAISubscriber

src/utils/auth.ts:1564–1570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1562}
1563
1564export function isClaudeAISubscriber(): boolean {
1565 if (!isAnthropicAuthEnabled()) {
1566 return false
1567 }
1568
1569 return shouldUseClaudeAIAuth(getClaudeAIOAuthTokens()?.scopes)
1570}
1571
1572/**
1573 * Check if the current OAuth token has the user:profile scope.

Callers 15

getAuthHeadersFunction · 0.70
isBilledAsExtraUsageFunction · 0.70
filterAllowedSdkBetasFunction · 0.70
betas.tsFile · 0.70
is1PApiCustomerFunction · 0.70
isConsumerSubscriberFunction · 0.70
getAccountInformationFunction · 0.70
hasConsoleBillingAccessFunction · 0.70
hasClaudeAiBillingAccessFunction · 0.70
getModelDisplayLabelFunction · 0.70

Calls 2

isAnthropicAuthEnabledFunction · 0.85
shouldUseClaudeAIAuthFunction · 0.85

Tested by

no test coverage detected