@passflow/react 0.24.0 → 0.25.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 +15 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +114 -114
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/provider/passflow-provider.d.cts +7 -29
- package/dist/src/components/provider/passflow-provider.d.ts +7 -29
- package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
- package/dist/src/components/provider/upgrade-provider.d.cts +9 -2
- package/dist/src/components/provider/upgrade-provider.d.ts +9 -2
- package/dist/src/components/provider/upgrade-provider.d.ts.map +1 -1
- package/dist/src/hooks/use-consent.d.ts.map +1 -1
- package/dist/src/utils/form-post.d.cts +7 -0
- package/dist/src/utils/form-post.d.ts +7 -0
- package/dist/src/utils/form-post.d.ts.map +1 -0
- package/dist/src/utils/index.d.cts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@passflow/react` are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.25.0] - 2026-11-09
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Requires `@passflow/core` ^0.30.1 (was ^0.29.0), for `passflow.hostedUpgrade`.
|
|
10
|
+
- Under an OIDC parent (`parent_challenge_id` in the URL) the provider always calls `/auth/session/exchange`, with the hosted session cookie only: it sends no `Authorization` header and refreshes no stored token first. The `prompt=login` and stored-token `max_age` checks the SDK made before the exchange are removed; the server judges the hosted session and answers 403 when it falls short.
|
|
11
|
+
- Exchange answers: 401 or 400 shows the sign-in form (`login_required` to the app under `prompt=none`). A 403 under `prompt=none` sends `interaction_required` to the app. A 403 naming `acr_values` or `max_age` opens the step-up dialog on `passflow.hostedUpgrade` and retries the exchange once; if the step-up is cancelled or fails, the app gets `unmet_authentication_requirements` when `acr_values` was asked, and the sign-in form shows when only `max_age` was. A 403 naming neither shows the sign-in form.
|
|
12
|
+
- Errors sent to the app follow the request's `response_mode`: a query-string redirect, or a POST form for `form_post`.
|
|
13
|
+
- While the step-up dialog is open under a parent, the "continuing" status shows behind it instead of the sign-in form.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `{ form_post: { action, fields } }` answers from auth endpoints and the exchange are submitted as a hidden POST form, so apps registered with `response_mode=form_post` receive their code.
|
|
18
|
+
- `UpgradeProvider` prop `facade`: the upgrade facade to install and elevate through (default `passflow.upgrade`). `PassflowProvider` passes `passflow.hostedUpgrade` under a parent challenge, turns the upgrade dialog on there, and does not patch `fetch` for it.
|
|
19
|
+
|
|
5
20
|
## [0.24.0] - 2026-11-09
|
|
6
21
|
|
|
7
22
|
### Changed
|