@passflow/core 0.39.2 → 0.39.3
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 +11 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +9 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelog
|
|
4
4
|
|
|
5
|
+
### Version 0.39.3
|
|
6
|
+
|
|
7
|
+
- Changed: a sign-in that lands with tokens in the URL also removes `user_state` from the address
|
|
8
|
+
bar, as the federated landing already did. An app that read `user_state` from the URL after
|
|
9
|
+
`handleTokensRedirect()` no longer finds it there.
|
|
10
|
+
- Docs: after `confirmTwoFactorEnrollment`, `verifyTwoFactor` takes the next authenticator code; the
|
|
11
|
+
server accepts each code only once.
|
|
12
|
+
|
|
5
13
|
### Version 0.39.2
|
|
6
14
|
|
|
7
15
|
- Added: `challenge` on `PassflowSmsQuotaExceededError` and `PassflowSendLimitError`
|
|
@@ -1023,7 +1031,7 @@ switch (enrollment) {
|
|
|
1023
1031
|
case "direct": { // no factor, no validated email: enrol on this sign-in
|
|
1024
1032
|
const setup = await passflow.beginTwoFactorEnrollment(); // setup.secret, setup.qr_code (base64 PNG)
|
|
1025
1033
|
const { recovery_codes } = await passflow.confirmTwoFactorEnrollment(code); // show these once
|
|
1026
|
-
await passflow.verifyTwoFactor(
|
|
1034
|
+
await passflow.verifyTwoFactor(nextCode); // the next authenticator code finishes the sign-in
|
|
1027
1035
|
break;
|
|
1028
1036
|
}
|
|
1029
1037
|
case "unavailable": // no way to enrol here: tell the user to contact the administrator
|
|
@@ -1180,8 +1188,8 @@ const handleRedirect = () => {
|
|
|
1180
1188
|
};
|
|
1181
1189
|
```
|
|
1182
1190
|
|
|
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:
|
|
1191
|
+
`handleTokensRedirect()` returns nothing. It removes the tokens (and their `state`), `client_challenge`
|
|
1192
|
+
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
1193
|
it reads the app settings first, and an app in SDK mode, an instance with no app id, or a failed read
|
|
1186
1194
|
ends in `Error` with operation `tokens.from-url` and code `TOKENS_IN_URL_NOT_ALLOWED`, with nothing
|
|
1187
1195
|
saved. For a Simple app it then verifies the tokens in the background before saving them: each signature against the keys at
|