@idosgames/core 0.4.0 → 0.5.1

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.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,25 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.5.0] - 2026-08-04
18
+
19
+ ### Added
20
+
21
+ - `auth.loginWithSsoCode(code)` — exchange a one-time code issued by idosgames.com for a
22
+ title session. This is how a game signs a player in without ever receiving a platform
23
+ token: the code lives 60 seconds, is burnt on first exchange, and only works for the
24
+ title it was issued for. Deliberately **not** replayable by `autoLogin()` — a stale
25
+ session is re-established by bouncing through `/sso` again, which is silent while the
26
+ site session is alive.
27
+ - `readSsoCodeFromUrl()` — read that code out of the URL fragment and strip it from the
28
+ address bar (a fragment never reaches a server, so it stays out of proxy logs and
29
+ `Referer`; clearing it stops a reload from re-submitting a burnt code). Verifies the
30
+ returned `state` against the one this browser stored before leaving.
31
+ - `beginSsoRedirect({titleID, returnTo?, ssoUrl?})` — send the browser to the platform
32
+ sign-in page. Top-level redirect rather than a popup: popups are blocked by default on
33
+ mobile browsers and inside standalone/PWA windows, which is exactly where games run.
34
+ - `AuthenticationAction.LoginWithSsoCode` and `AuthenticationRequest.SsoCode`.
35
+
17
36
  ## [0.1.0] - 2026-06-29
18
37
 
19
38
  ### Added