@passflow/react 0.30.1 → 0.32.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/CHANGELOG.md +22 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +116 -113
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/flow/access-lists.d.cts +14 -0
- package/dist/src/components/flow/access-lists.d.ts +14 -0
- package/dist/src/components/flow/access-lists.d.ts.map +1 -0
- package/dist/src/components/flow/consent/screen.d.ts.map +1 -1
- package/dist/src/components/flow/device-verify/screen.d.ts.map +1 -1
- package/dist/src/components/provider/passflow-provider.d.cts +1 -0
- package/dist/src/components/provider/passflow-provider.d.ts +1 -0
- package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/consent.d.cts +3 -0
- package/dist/src/components/ui/login-screen/consent.d.ts +3 -0
- package/dist/src/components/ui/login-screen/consent.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/device-approval.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/index.d.cts +1 -1
- package/dist/src/components/ui/login-screen/index.d.ts +1 -1
- package/dist/src/components/ui/login-screen/index.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/shared.d.cts +10 -1
- package/dist/src/components/ui/login-screen/shared.d.ts +10 -1
- package/dist/src/components/ui/login-screen/shared.d.ts.map +1 -1
- package/dist/src/components/ui/login-screen/types.d.cts +32 -0
- package/dist/src/components/ui/login-screen/types.d.ts +32 -0
- package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
- package/dist/src/hooks/index.d.cts +1 -1
- package/dist/src/hooks/index.d.ts +1 -1
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/use-consent.d.cts +21 -0
- package/dist/src/hooks/use-consent.d.ts +21 -0
- package/dist/src/hooks/use-consent.d.ts.map +1 -1
- package/dist/src/hooks/use-device-verify.d.cts +7 -0
- package/dist/src/hooks/use-device-verify.d.ts +7 -0
- package/dist/src/hooks/use-device-verify.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@passflow/react` are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.32.0] - 2026-11-25
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- The minimum `@passflow/core` is now 0.35.0.
|
|
10
|
+
- A new session (a sign-in, tokens in the URL, `passflow.setTokens()`) replaces the stored tokens. An app that calls `setTokens()` with only a new access token loses the stored refresh token, ID token and scopes. Pass every token you want to keep.
|
|
11
|
+
- A tab that holds a refresh token is signed out when another tab replaces the session with one that has no refresh token.
|
|
12
|
+
- `getTokens(true)` gives `undefined` tokens for an expired access token with no refresh token.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- A session with an access token and no refresh token stays signed in when the page becomes visible again and when another tab signs the same user in. Before, `isSignedIn` turned `false`.
|
|
17
|
+
|
|
18
|
+
## [0.31.0] - 2026-11-24
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- The consent screen shows which client asks and where the user is sent: the client host, a "Verified client" badge, "You'll be sent to" with the redirect host, the resources, and the server's warnings above the scopes. An unverified client's host is as large as the title. Critical and high warnings are alerts; no warning disables Allow. A server that sends none of these fields gets the same screen as before.
|
|
23
|
+
- `ConsentInfo` has the optional fields `issuer`, `client_kind`, `client_host`, `redirect_host`, `verified`, `resources` and `warnings`, with the types `ConsentResource` and `ConsentWarning`.
|
|
24
|
+
- The OIDC errors `PassflowProvider` sends to the relying party itself carry `iss` (RFC 9207), in the query and in `form_post`, when the server names its `issuer`.
|
|
25
|
+
- The device approval screens list, before the approval, each resource's name with its address and the scopes the token will hold, labelled as on the consent screen. `DeviceVerifyInfo` has the optional fields `resources`, `scopes` and `scope_metadata`. A server that sends none of them gets the same screens as before. The passkey mode approves without a list, as before.
|
|
26
|
+
|
|
5
27
|
## [0.30.1] - 2026-11-23
|
|
6
28
|
|
|
7
29
|
### Changed
|