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

Function isUsingOAuth

src/services/settingsSync/index.ts:211–217  ·  view source on GitHub ↗

* Check if user is authenticated with first-party OAuth. * Required for settings sync in both CLI (upload) and CCR (download) modes. * * Only checks user:inference (not user:profile) — CCR's file-descriptor token * hardcodes scopes to ['user:inference'] only, so requiring profile would make * d

()

Source from the content-addressed store, hash-verified

209 * download a no-op there. Upload is independently guarded by getIsInteractive().
210 */
211function isUsingOAuth(): boolean {
212 if (getAPIProvider() !== 'firstParty' || !isFirstPartyNoumenaBaseUrl()) {
213 return false
214 }
215
216 return hasUsableSettingsSyncSession(getCurrentSettingsSyncSession())
217}
218
219function getSettingsSyncEndpoint(): string {
220 return `${getNoumenaPlatformBaseUrl()}/api/claude_code/user_settings`

Callers 2

doDownloadUserSettingsFunction · 0.70

Calls 4

getAPIProviderFunction · 0.85

Tested by

no test coverage detected