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

Function hasProfileScope

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

Source from the content-addressed store, hash-verified

1578 * generate 403 storms against /api/oauth/profile, bootstrap, etc.
1579 */
1580export function hasProfileScope(): boolean {
1581 return (
1582 getClaudeAIOAuthTokens()?.scopes?.includes(CLAUDE_AI_PROFILE_SCOPE) ?? false
1583 )
1584}
1585
1586export function is1PApiCustomer(): boolean {
1587 // 1P API customers are users who are NOT:

Callers 8

prefetchFastModeStatusFunction · 0.70
fetchWithCurrentAuthFunction · 0.70
getOrganizationUUIDFunction · 0.50
fetchBootstrapAPIFunction · 0.50
checkMetricsEnabledFunction · 0.50
fetchUtilizationFunction · 0.50
sendBatchWithRetryMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected