@passflow/core 0.43.0 → 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,29 @@
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
+
18
+ ### Version 0.43.1
19
+
20
+ - Fixed: `TwoFactorTrustedDevice` now describes every field of `GET /v2/user/2fa/trusted-devices`:
21
+ `trusted` (the device holds a grant that stands in for the second factor), `device_key`
22
+ (`TwoFactorTrustedDeviceKey`: `key_storage`, `enrolled_at`, `last_proof_at`) and `push_approval`
23
+ (`TwoFactorTrustedDevicePush`: `registered_at`). `expires_at` is now optional: the server leaves
24
+ it out on a device without a grant, one that only holds a device key or a push approval.
25
+ - Fixed: `TwoFactorSetupMagicLinkSession.reset` is `boolean`, not `boolean | undefined`; the SDK
26
+ always sets it.
27
+
5
28
  ### Version 0.43.0
6
29
 
7
30
  - Added: `passflow.devicePushProof(use, jti)` signs a push-approval device proof (`push_enrol`,