@passflow/core 0.39.0 → 0.39.2

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,22 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### Version 0.39.2
6
+
7
+ - Added: `challenge` on `PassflowSmsQuotaExceededError` and `PassflowSendLimitError`
8
+ (`TwoFactorSendRefusalChallenge`: `challenge_id`, `suggested_method`, `alternative_methods`) when
9
+ the refused send's 429 body carries a `challenge_id`, so the sign-in can go on with another
10
+ method. Undefined otherwise.
11
+
12
+ ### Version 0.39.1
13
+
14
+ - Changed: errors the SDK passes on carry no request data. A rejected `AxiosError` that reaches the
15
+ caller, or the `Error` event as `originalError`, keeps its url, method, status and answer; its
16
+ `config` has no `data` and no headers, and `request` is `undefined`. A credential in the request
17
+ path is replaced by a placeholder in the error's url and in `PassflowError.location`
18
+ (`/auth/2fa-setup/:token`, `/cli/auth/status/:sessionId`).
19
+ - Docs: `PassflowSendLimitError` on `updateProfile` can also come from the proof check.
20
+
5
21
  ### Version 0.39.0
6
22
 
7
23
  - Added: emailed and texted second-factor codes (`email_otp`, `sms_otp`). `resend` on
@@ -1420,7 +1436,8 @@ A call that sends a code (`requestChallenge`, `switchToAlternative`, `startRecov
1420
1436
  method.
1421
1437
  - `PassflowSendLimitError` (id `error.2fa.rate_limit_exceeded`, `TWO_FACTOR_SEND_LIMIT_ERROR_ID`):
1422
1438
  the app's send limit is spent. `retryAfter` is the seconds to wait, or `undefined` when the server
1423
- sent no `Retry-After`.
1439
+ sent no `Retry-After`. On `updateProfile` it can also come from the proof check: too many wrong
1440
+ codes, not a spent send limit.
1424
1441
 
1425
1442
  Any other 429 on these calls rejects with the raw axios error, as on every other call.
1426
1443