@passflow/core 0.43.1 → 0.44.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.44.0
6
+
7
+ - Added: warns once in the console when a tenant call runs on a token without tenant membership
8
+ (no `passflow_tm` claim). `passflow.tenant.createTenant`, `getTenantDetails`,
9
+ `getTenantUserMembership` and `getUserTenantMembership` (and `passflow.createTenant`) check the
10
+ stored access token; without the claim, the sign-in did not ask for the tenant scope. The
11
+ warning says to add `'access:tenant:all'` to the app's scopes (for example `PassflowProvider`
12
+ `scopes`) and sign in again, because a refresh keeps the old scopes. Once per `Passflow`
13
+ instance; return values, errors and default scopes are unchanged. Token parsing, sign-in,
14
+ refresh and other tenant-service calls stay silent, and BFF and cookie modes, which keep no
15
+ access token in storage, never warn. `TenantService` takes an optional fourth constructor
16
+ argument, `readStoredAccessToken`.
17
+
5
18
  ### Version 0.43.1
6
19
 
7
20
  - Fixed: `TwoFactorTrustedDevice` now describes every field of `GET /v2/user/2fa/trusted-devices`: