@fleetless/sdk 4.5.0 → 4.6.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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to `@fleetless/sdk`. The format follows Keep a Changelog; th
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [4.6.0] — 2026-11-03
8
+
9
+ ### Added
10
+
11
+ - `auth.signInMethods()` now returns required `twoFactor: 'off' | 'optional' | 'required'` beside `password` and `emailCode`. It reads the app policy from the public providers response; `listProviders()` still returns provider buttons only. Built against `@fleetless/contracts` 12.0.0.
12
+
7
13
  ## [4.5.0] — 2026-10-09
8
14
 
9
15
  ### Changed
package/README.md CHANGED
@@ -91,6 +91,14 @@ Node 22 and newer, or server-side with a server key instead of a user session.
91
91
  Node 20 does REST fine but ships no global `WebSocket`, so realtime there needs
92
92
  one passed in through the `WebSocket` option.
93
93
 
94
+ Before drawing your app's sign-in screen, read its public policy:
95
+
96
+ ```ts
97
+ const { password, emailCode, twoFactor } = await client.auth.signInMethods()
98
+ // twoFactor is 'off', 'optional' or 'required'; it is app policy, not enrollment.
99
+ // listProviders() separately returns only federated sign-in buttons.
100
+ ```
101
+
94
102
  ## 📚 Documentation
95
103
 
96
104
  Everything past this point lives at **[docs.fleetless.dev](https://docs.fleetless.dev)**.