@passflow/core 0.41.0 → 0.42.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 +15 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +151 -6
- package/dist/index.d.ts +151 -6
- package/dist/index.mjs +1387 -1100
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelog
|
|
4
4
|
|
|
5
|
+
### Version 0.42.0
|
|
6
|
+
|
|
7
|
+
- Added: `deviceKey: true` in the `Passflow` config binds sessions to this browser. The SDK keeps a
|
|
8
|
+
non-extractable ES256 key in IndexedDB (declared `software`), enrols it with
|
|
9
|
+
`POST /user/device/key` after a sign-in that completed a second factor (or when the app calls
|
|
10
|
+
`enrolDeviceKey()` after a step-up), and then sends `X-Passflow-Device-Proof` on password and
|
|
11
|
+
passkey sign-in and on every `/auth/refresh` attempt, with a counter that only rises. With the
|
|
12
|
+
option, `/auth/refresh` also goes with credentials, so a browser that registered DBSC sends its
|
|
13
|
+
cookie. Any `error.device.*` answer at refresh (for example `error.device.key.reused`) deletes the
|
|
14
|
+
key and tokens and ends the session: `SessionExpired` plus one `Error` carrying the id (after a
|
|
15
|
+
step-up commit, at the next refresh). Token
|
|
16
|
+
answers carry `refresh_challenge`. Off by default, and ignored in BFF mode; without it the SDK
|
|
17
|
+
sends exactly what it sent before. Needs Passflow server v0.137.0 or later. See
|
|
18
|
+
[docs/device-key.md](docs/device-key.md).
|
|
19
|
+
|
|
5
20
|
### Version 0.41.0
|
|
6
21
|
|
|
7
22
|
- Added: `logOut({ postLogoutRedirectUri })` also sends the address as `post_logout_redirect_uri`
|