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

Function hasProfileScope

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

Source from the content-addressed store, hash-verified

1646 * generate 403 storms against /api/oauth/profile, bootstrap, etc.
1647 */
1648export function hasProfileScope(): boolean {
1649 return (
1650 getClaudeAIOAuthTokens()?.scopes?.includes(CLAUDE_AI_PROFILE_SCOPE) ?? false
1651 )
1652}
1653
1654export function is1PApiCustomer(): boolean {
1655 // 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