* Check if user is authenticated with first-party OAuth (required for team memory sync).
()
| 147 | * Check if user is authenticated with first-party OAuth (required for team memory sync). |
| 148 | */ |
| 149 | function isUsingOAuth(): boolean { |
| 150 | if (getAPIProvider() !== 'firstParty' || !isFirstPartyNoumenaBaseUrl()) { |
| 151 | return false |
| 152 | } |
| 153 | return hasUsableTeamMemorySyncSession(getCurrentTeamMemorySyncSession()) |
| 154 | } |
| 155 | |
| 156 | function getTeamMemorySyncEndpoint(repoSlug: string): string { |
| 157 | const baseUrl = process.env.TEAM_MEMORY_SYNC_URL || getNoumenaPlatformBaseUrl() |
no test coverage detected