@passflow/core 0.37.0 → 0.37.1
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 +14 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -7
- package/dist/index.d.ts +17 -7
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelog
|
|
4
4
|
|
|
5
|
+
### Version 0.37.1
|
|
6
|
+
|
|
7
|
+
- Changed: a step-up commit answered 401 with `error.grant.predates_credential_reset`,
|
|
8
|
+
`error.token.access_ended` or `error.user.not_found` marks the session invalid, as
|
|
9
|
+
`error.api.request.token.invalid` already did. In cookie mode `isAuthenticated()` then answers
|
|
10
|
+
`false`. In JSON mode the mark is not read: the tokens stay and no `SignOut` is raised until the
|
|
11
|
+
next refresh fails.
|
|
12
|
+
- Changed: `setPreferredTwoFactorMethod(method)` and `passflow.twoFactor.setPreferredMethod(method)`
|
|
13
|
+
are typed to answer the method, without `null`. The server always answers the method it stored.
|
|
14
|
+
- Docs: `suggested_method` from `switchToAlternative` is worked out again at the switch and can
|
|
15
|
+
differ from the first challenge's.
|
|
16
|
+
|
|
5
17
|
### Version 0.37.0
|
|
6
18
|
|
|
7
19
|
- Added: the preferred second factor. `getPreferredTwoFactorMethod()` answers the method the
|
|
@@ -998,7 +1010,8 @@ switch (enrollment) {
|
|
|
998
1010
|
`passflow.twoFactor.getRegisteredMethods()` marks the preferred method with `preferred: true`.
|
|
999
1011
|
- **Suggested method and account hint.** A v2 challenge carries `suggested_method`, the method
|
|
1000
1012
|
sign-in offers first. From `requestChallenge` it equals `method`. From `switchToAlternative`,
|
|
1001
|
-
`method` is the one the user chose and `suggested_method`
|
|
1013
|
+
`method` is the one the user chose and `suggested_method` is the one sign-in would offer first
|
|
1014
|
+
now: the server works it out again at the switch, so it can differ from the first challenge's.
|
|
1002
1015
|
`account_hint`, on the challenge and on `getTwoFactorEnrollment()`, is a masked name of the account
|
|
1003
1016
|
signing in: the email (`h***@example.com`), else the phone (`***-***-1234`), else the username
|
|
1004
1017
|
(`u***`). It is absent when the user has none. Older servers send neither field.
|