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

Function hasProfileScope

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

Source from the content-addressed store, hash-verified

1826 * generate 403 storms against /api/oauth/profile, bootstrap, etc.
1827 */
1828export function hasProfileScope(): boolean {
1829 return (
1830 getClaudeAIOAuthTokens()?.scopes?.includes(CLAUDE_AI_PROFILE_SCOPE) ?? false
1831 )
1832}
1833
1834export function getUsableClaudeAiAccessToken(options?: {
1835 requireProfileScope?: boolean

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected