MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isUsingOAuth

Function isUsingOAuth

src/services/teamMemorySync/index.ts:151–161  ·  view source on GitHub ↗

* Check if user is authenticated with first-party OAuth (required for team memory sync).

()

Source from the content-addressed store, hash-verified

149 * Check if user is authenticated with first-party OAuth (required for team memory sync).
150 */
151function isUsingOAuth(): boolean {
152 if (getAPIProvider() !== 'firstParty' || !isFirstPartyAnthropicBaseUrl()) {
153 return false
154 }
155 const tokens = getClaudeAIOAuthTokens()
156 return Boolean(
157 tokens?.accessToken &&
158 tokens.scopes?.includes(CLAUDE_AI_INFERENCE_SCOPE) &&
159 tokens.scopes.includes(CLAUDE_AI_PROFILE_SCOPE),
160 )
161}
162
163function getTeamMemorySyncEndpoint(repoSlug: string): string {
164 const baseUrl =

Callers 3

pullTeamMemoryFunction · 0.70
pushTeamMemoryFunction · 0.70

Calls 2

getAPIProviderFunction · 0.85

Tested by

no test coverage detected