@passflow/core 0.47.0 → 0.48.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 CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### Version 0.48.1
6
+
7
+ Works with every Passflow server.
8
+
9
+ - Fixed: `googleNativeAvailable()` answered `false`, and `googleNativeSignIn` failed with
10
+ `'unsupported'`, in a Chrome where an extension (a password manager, for example) wraps
11
+ `navigator.credentials.get`. The SDK no longer calls `get` to find out whether FedCM is there.
12
+ It now reads `IdentityCredential`, whether `navigator.credentials.get` exists, and the Chromium
13
+ version (132 or later, from `navigator.userAgentData` or the user agent string). Other browsers
14
+ stay unsupported. A browser that passes the check but refuses the request still fails at
15
+ sign-in with `NativeSignInError`.
16
+
17
+ ### Version 0.48.0
18
+
19
+ Works with every Passflow server. The server sends `attack_protection.challenge` from
20
+ https://github.com/usepassflow/passflow/pull/693 on; a server that does not send it keeps the
21
+ previous behaviour.
22
+
23
+ - Changed: when `GET /app/settings` carries `"attack_protection": { "challenge": true }`,
24
+ `federatedAuthWithPopup` and `federatedAuthWithRedirect` start with a POST, as on a `human_only`
25
+ app, instead of navigating to the GET start. A forced challenge on that start now reaches
26
+ `setAntiBotTokenProvider` (or the built-in check) and the start is sent once more. Enterprise
27
+ sign-in through these flows (`conn_<connection_id>`) and `enterpriseStart()` behave the same.
28
+ A missing field, or any value but `true`, keeps the navigation on a bot-friendly app.
29
+ - Added: `AttackProtectionSettings.challenge?: boolean`. The provider id code ignores it: a block
30
+ with only `challenge` sends no `X-Passflow-Fingerprint-Event` / `X-Passflow-Stytch-Telemetry`
31
+ and logs no warning.
32
+
5
33
  ### Version 0.47.0
6
34
 
7
35
  Needs a Passflow server that serves `POST /auth/federated/native/start/{provider}`,