@passflow/core 0.39.0 → 0.39.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,15 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### Version 0.39.1
6
+
7
+ - Changed: errors the SDK passes on carry no request data. A rejected `AxiosError` that reaches the
8
+ caller, or the `Error` event as `originalError`, keeps its url, method, status and answer; its
9
+ `config` has no `data` and no headers, and `request` is `undefined`. A credential in the request
10
+ path is replaced by a placeholder in the error's url and in `PassflowError.location`
11
+ (`/auth/2fa-setup/:token`, `/cli/auth/status/:sessionId`).
12
+ - Docs: `PassflowSendLimitError` on `updateProfile` can also come from the proof check.
13
+
5
14
  ### Version 0.39.0
6
15
 
7
16
  - Added: emailed and texted second-factor codes (`email_otp`, `sms_otp`). `resend` on
@@ -1420,7 +1429,8 @@ A call that sends a code (`requestChallenge`, `switchToAlternative`, `startRecov
1420
1429
  method.
1421
1430
  - `PassflowSendLimitError` (id `error.2fa.rate_limit_exceeded`, `TWO_FACTOR_SEND_LIMIT_ERROR_ID`):
1422
1431
  the app's send limit is spent. `retryAfter` is the seconds to wait, or `undefined` when the server
1423
- sent no `Retry-After`.
1432
+ sent no `Retry-After`. On `updateProfile` it can also come from the proof check: too many wrong
1433
+ codes, not a spent send limit.
1424
1434
 
1425
1435
  Any other 429 on these calls rejects with the raw axios error, as on every other call.
1426
1436