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