@passflow/core 0.35.2 → 0.35.3

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,29 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### Version 0.35.3
6
+
7
+ - Fixed: in cookie and BFF mode a call answered 401 refreshes the session once and is sent once
8
+ more, so an expired access cookie with a good refresh cookie no longer fails the call or marks
9
+ the session invalid. Calls answered 401 together share one refresh. When the refresh fails, the
10
+ session has ended, or the second send is also answered 401, the call rejects with the 401 and
11
+ the session is marked invalid, as before. `/auth/refresh`, logout, the sign-in calls, the hosted
12
+ session's calls, calls made with their own bearer and step-up 401s are not sent again. This
13
+ needs a Passflow server that answers 401 for a missing or expired access token.
14
+ - Fixed: after the first cookie-mode sign-in on a page, API calls carry `withCredentials` and the
15
+ `X-CSRF-Token` header at once. Each API client kept the delivery mode it read when it was built,
16
+ so those calls went out without them until the next page load.
17
+ - Fixed: `setAppId()` reloads the in-memory token cache, so `getCachedTokens()` returns what is
18
+ stored for the new app and no longer the previous app's tokens.
19
+ - Fixed: a token refresh, step-up commit or page-load session check still unanswered when
20
+ `setAppId()` switches from one app id to another no longer applies its answer to the new app,
21
+ and `setAppId()` then checks the new app's cookie or BFF session itself. A step-up commit
22
+ answered after the switch rejects with `UpgradeCommitInterruptedError` (`superseded`).
23
+ `setAppId()` with the app id the instance already has changes nothing, and the first app id
24
+ given to an instance built without one keeps what is on its way.
25
+ - Fixed: a sign-in answer whose tokens were issued for another app than the current app id is
26
+ refused with an error and stores nothing.
27
+
5
28
  ### Version 0.35.2
6
29
 
7
30
  - Fixed: the cookie and BFF session is stored per app. The session state, delivery mode, CSRF token