@oxyhq/core 1.11.22 → 1.11.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/.tsbuildinfo +1 -1
  3. package/dist/cjs/HttpService.js +52 -0
  4. package/dist/cjs/OxyServices.base.js +16 -0
  5. package/dist/esm/.tsbuildinfo +1 -1
  6. package/dist/esm/HttpService.js +52 -0
  7. package/dist/esm/OxyServices.base.js +16 -0
  8. package/dist/types/.tsbuildinfo +1 -1
  9. package/dist/types/HttpService.d.ts +31 -0
  10. package/dist/types/OxyServices.base.d.ts +14 -0
  11. package/dist/types/mixins/OxyServices.analytics.d.ts +1 -0
  12. package/dist/types/mixins/OxyServices.appData.d.ts +1 -0
  13. package/dist/types/mixins/OxyServices.assets.d.ts +1 -0
  14. package/dist/types/mixins/OxyServices.auth.d.ts +1 -0
  15. package/dist/types/mixins/OxyServices.contacts.d.ts +1 -0
  16. package/dist/types/mixins/OxyServices.developer.d.ts +1 -0
  17. package/dist/types/mixins/OxyServices.devices.d.ts +1 -0
  18. package/dist/types/mixins/OxyServices.features.d.ts +6 -1
  19. package/dist/types/mixins/OxyServices.fedcm.d.ts +1 -0
  20. package/dist/types/mixins/OxyServices.karma.d.ts +1 -0
  21. package/dist/types/mixins/OxyServices.language.d.ts +1 -0
  22. package/dist/types/mixins/OxyServices.location.d.ts +1 -0
  23. package/dist/types/mixins/OxyServices.managedAccounts.d.ts +1 -0
  24. package/dist/types/mixins/OxyServices.payment.d.ts +1 -0
  25. package/dist/types/mixins/OxyServices.popup.d.ts +1 -0
  26. package/dist/types/mixins/OxyServices.privacy.d.ts +1 -0
  27. package/dist/types/mixins/OxyServices.redirect.d.ts +1 -0
  28. package/dist/types/mixins/OxyServices.security.d.ts +1 -0
  29. package/dist/types/mixins/OxyServices.topics.d.ts +1 -0
  30. package/dist/types/mixins/OxyServices.user.d.ts +1 -0
  31. package/dist/types/mixins/OxyServices.utility.d.ts +1 -0
  32. package/package.json +1 -1
  33. package/src/HttpService.ts +53 -0
  34. package/src/OxyServices.base.ts +17 -0
  35. package/src/mixins/__tests__/onTokensChanged.test.ts +130 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  OxyHQ SDK Foundation. Platform-agnostic core library that works in Node.js, browser, and React Native environments. No React dependency.
4
4
 
5
- **Current published version: 1.11.21**
5
+ **Current published version: 1.11.22**
6
6
 
7
7
  ## Installation
8
8
 
@@ -62,7 +62,7 @@ Compiles with TypeScript, producing CJS, ESM, and type declaration outputs.
62
62
  - Use W3C-spec `mode` enum: `'active'` / `'passive'`. Do NOT use legacy `'button'` / `'widget'` (Chrome throws TypeError).
63
63
  - Client sends `'active'` first, transparently retries with legacy value for Chrome 125–131 backwards compat.
64
64
  - Token exchange requires a server-minted nonce from `POST /fedcm/nonce` — local UUID nonces are rejected.
65
- - **Silent SSO guard is centralized here**: `OxyServices.silentSignInWithFedCM()` deduplicates silent calls with a module-level memo keyed on `origin+baseURL`. Concurrent callers share the in-flight promise; post-settlement callers receive the cached result. Interactive sign-in is NOT memoized.
65
+ - **Silent SSO guard is NOT here**: a module-level singleton in core was tried and reverted it re-evaluates in the Metro web bundle so the guard did not hold. The guard lives in the consumer hooks (`useWebSSO` in `@oxyhq/services` and `@oxyhq/auth`) and in `WebOxyProvider`. Do NOT move it back into a core module-level singleton.
66
66
 
67
67
  ## `verifyChallenge` Token Planting
68
68