Skip to content

v0.1.1

Latest

Choose a tag to compare

@khatabwedaa khatabwedaa released this 01 Apr 10:48
· 1 commit to main since this release
a5f47a0

v0.1.1

Bug Fixes

  • forRootAsync DI bypassforRootAsync was using new options.userRepository() which bypassed NestJS dependency injection, leaving repository dependencies (e.g. DataSource) undefined. Now uses ModuleRef.create() to properly instantiate repositories through the DI container.
  • forRootAsync missing PASSWORD_RESET_REPOSITORY — The conditional PASSWORD_RESET_REPOSITORY registration present in forRoot was absent from forRootAsync. Now registers it via ModuleRef.create() when configured, or null when not (compatible with @Optional() injection).
  • TwoFactorController.enable() crash on empty body — Calling POST /user/two-factor-authentication without a request body caused a TypeError because @Body() returned undefined. Now handles optional body with safe navigation (body?.force ?? false).