@passflow/core 0.39.2 → 0.39.4
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 +17 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +13 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelog
|
|
4
4
|
|
|
5
|
+
### Version 0.39.4
|
|
6
|
+
|
|
7
|
+
- Changed: a sign-in that lands with `#tfa_token=` also removes `user_state` from the address bar,
|
|
8
|
+
as the token and federated landings do. Nothing reads it after that landing: `verifyTwoFactor`
|
|
9
|
+
uses the adopted token.
|
|
10
|
+
|
|
11
|
+
### Version 0.39.3
|
|
12
|
+
|
|
13
|
+
- Changed: a sign-in that lands with tokens in the URL also removes `user_state` from the address
|
|
14
|
+
bar, as the federated landing already did. An app that read `user_state` from the URL after
|
|
15
|
+
`handleTokensRedirect()` no longer finds it there.
|
|
16
|
+
- Docs: after `confirmTwoFactorEnrollment`, `verifyTwoFactor` takes the next authenticator code; the
|
|
17
|
+
server accepts each code only once.
|
|
18
|
+
|
|
5
19
|
### Version 0.39.2
|
|
6
20
|
|
|
7
21
|
- Added: `challenge` on `PassflowSmsQuotaExceededError` and `PassflowSendLimitError`
|
|
@@ -1023,7 +1037,7 @@ switch (enrollment) {
|
|
|
1023
1037
|
case "direct": { // no factor, no validated email: enrol on this sign-in
|
|
1024
1038
|
const setup = await passflow.beginTwoFactorEnrollment(); // setup.secret, setup.qr_code (base64 PNG)
|
|
1025
1039
|
const { recovery_codes } = await passflow.confirmTwoFactorEnrollment(code); // show these once
|
|
1026
|
-
await passflow.verifyTwoFactor(
|
|
1040
|
+
await passflow.verifyTwoFactor(nextCode); // the next authenticator code finishes the sign-in
|
|
1027
1041
|
break;
|
|
1028
1042
|
}
|
|
1029
1043
|
case "unavailable": // no way to enrol here: tell the user to contact the administrator
|
|
@@ -1180,8 +1194,8 @@ const handleRedirect = () => {
|
|
|
1180
1194
|
};
|
|
1181
1195
|
```
|
|
1182
1196
|
|
|
1183
|
-
`handleTokensRedirect()` returns nothing. It removes the tokens (and their `state`)
|
|
1184
|
-
once; the other query and fragment params stay. Core accepts URL tokens only for apps in Simple mode:
|
|
1197
|
+
`handleTokensRedirect()` returns nothing. It removes the tokens (and their `state`), `client_challenge`
|
|
1198
|
+
and `user_state` from the URL at once; the other query and fragment params stay. Core accepts URL tokens only for apps in Simple mode:
|
|
1185
1199
|
it reads the app settings first, and an app in SDK mode, an instance with no app id, or a failed read
|
|
1186
1200
|
ends in `Error` with operation `tokens.from-url` and code `TOKENS_IN_URL_NOT_ALLOWED`, with nothing
|
|
1187
1201
|
saved. For a Simple app it then verifies the tokens in the background before saving them: each signature against the keys at
|