MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / hasProfileScope

Function hasProfileScope

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

Source from the content-addressed store, hash-verified

1574 * generate 403 storms against /api/oauth/profile, bootstrap, etc.
1575 */
1576export function hasProfileScope(): boolean {
1577 return (
1578 getClaudeAIOAuthTokens()?.scopes?.includes(CLAUDE_AI_PROFILE_SCOPE) ?? false
1579 )
1580}
1581
1582export function is1PApiCustomer(): boolean {
1583 // 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