@bymax-one/nest-auth 1.4.21 → 1.4.22

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
@@ -18,6 +18,34 @@ what moves, and that note is the compatibility contract until strict SemVer begi
18
18
 
19
19
  ## [Unreleased]
20
20
 
21
+ ## [1.4.22] - 2026-11-08
22
+
23
+ ### Apply to a derived backend
24
+
25
+ - **`MfaService` is built from different collaborators.** Its constructor now takes
26
+ `MfaRecordService`, `MfaChallengeService`, `MfaManagementService`, `MfaFlowLockoutService` and
27
+ `ReauthenticationService`, and no longer takes `BruteForceService` or `PasswordService`.
28
+ `BymaxAuthModule` registers the new providers, and a class listed in `extraProviders` is resolved inside that module, so a host that
29
+ wires `MfaService` through the module changes nothing. Only code that calls `new MfaService(...)`
30
+ itself, such as a hand-built test double, must pass the new arguments.
31
+
32
+ ### Fixed
33
+
34
+ - **MFA log lines read `[MfaService]` again.** 1.4.21 moved the re-authentication and record-transition
35
+ code out of `MfaService`, and the log lines of those services began to carry their
36
+ own class names as the logger context, so a log filter or alert keyed on the `MfaService`
37
+ context stopped matching them. They log under `MfaService` again, as they did before 1.4.21. The
38
+ 1.4.21 note that log output was unchanged held for the message text and level only. No message
39
+ text or level has changed in either release.
40
+
41
+ ### Changed
42
+
43
+ - **`MfaService` moves its challenge and its enrolment-management code to internal services.**
44
+ `challenge` and `challengePlatformOnly`, and `disable`, `resetMfa` and
45
+ `regenerateRecoveryCodes`, now run in internal services that `MfaService` calls. The public
46
+ methods keep their signatures and defaults, and behaviour, error codes, Redis keys and log text
47
+ are unchanged. None of the moved code was part of the public API.
48
+
21
49
  ## [1.4.21] - 2026-11-08
22
50
 
23
51
  ### Apply to a derived backend
@@ -4634,7 +4662,8 @@ ever installable.
4634
4662
  - Phase 4 password-reset tests cover: both `token` and `otp` flows, mutual exclusivity validation, `verifiedToken` exchange, resend cooldown, anti-enumeration (no error on unknown email), and session invalidation on reset
4635
4663
  - Phase 5 tests cover: platform login with MFA path and brute-force lockout, `JwtPlatformGuard` cross-context rejection, `PlatformRolesGuard` hierarchy enforcement, OAuth CSRF state lifecycle, `onOAuthLogin` hook resolution strategies, and invitation role-authorization + acceptance single-use enforcement
4636
4664
 
4637
- [Unreleased]: https://github.com/bymaxone/nest-auth/compare/v1.4.21...HEAD
4665
+ [Unreleased]: https://github.com/bymaxone/nest-auth/compare/v1.4.22...HEAD
4666
+ [1.4.22]: https://github.com/bymaxone/nest-auth/compare/v1.4.21...v1.4.22
4638
4667
  [1.4.21]: https://github.com/bymaxone/nest-auth/compare/v1.4.20...v1.4.21
4639
4668
  [1.4.20]: https://github.com/bymaxone/nest-auth/compare/v1.4.19...v1.4.20
4640
4669
  [1.4.19]: https://github.com/bymaxone/nest-auth/compare/v1.4.18...v1.4.19