@passflow/core 0.29.0 → 0.30.0

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/README.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### Version 0.30.0
6
+
7
+ - `passflow.hostedUpgrade`: step-up for the hosted login page's cookie session. It has the same
8
+ surface as `passflow.upgrade`, but sends `POST /auth/session/upgrade/start` and
9
+ `POST /auth/session/upgrade` with the session cookie, and the server issues nothing, so no tokens
10
+ are stored. Call `enable({ prompt })` once, then `elevate(challenge, { kind: 'imperative' })`.
11
+ Never wire interception (`interceptFetch`, `withAuth`, `attachAuth`) to it.
12
+ - `UpgradeAPI.startHostedUpgrade()` and `UpgradeAPI.commitHostedUpgrade()`, and the endpoint
13
+ paths `PassflowEndpointPaths.hostedUpgradeStart` and `.hostedUpgrade`.
14
+ - Requests to `/auth/session/*` never carry the stored `Authorization` header and never trigger
15
+ a token refresh. A 401 from them never ends the stored token session, and the
16
+ `passflow.upgrade` step-up never acts on them.
17
+
5
18
  ### Version 0.29.0
6
19
 
7
20
  - **Breaking:** `authRedirect()` is now `async` and returns `Promise<void>`. It reads the app