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

Function isUsingOAuth

src/services/teamMemorySync/index.ts:149–154  ·  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

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

Callers 3

pullTeamMemoryFunction · 0.70
pushTeamMemoryFunction · 0.70

Calls 4

getAPIProviderFunction · 0.85

Tested by

no test coverage detected