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

Function hasProfileScope

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

Source from the content-addressed store, hash-verified

1628 * generate 403 storms against /api/oauth/profile, bootstrap, etc.
1629 */
1630export function hasProfileScope(): boolean {
1631 return (
1632 getClaudeAIOAuthTokens()?.scopes?.includes(CLAUDE_AI_PROFILE_SCOPE) ?? false
1633 )
1634}
1635
1636export function is1PApiCustomer(): boolean {
1637 // 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