* Check if user is authenticated with first-party OAuth (required for team memory sync).
()
| 149 | * Check if user is authenticated with first-party OAuth (required for team memory sync). |
| 150 | */ |
| 151 | function 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 | |
| 163 | function getTeamMemorySyncEndpoint(repoSlug: string): string { |
| 164 | const baseUrl = |
no test coverage detected