najm-auth 4.0.8 → 4.0.9

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1993,9 +1993,7 @@ var UserService = class UserService2 {
1993
1993
  if (!config?.email || !config?.password) {
1994
1994
  Err5("Admin email and password must be provided via config parameter");
1995
1995
  }
1996
- if (config.password.length < 12) {
1997
- Err5("Admin password must be at least 12 characters");
1998
- }
1996
+ this.userValidator.validatePasswordStrength(config.password);
1999
1997
  const adminRole = await this.roleValidator.checkAdminRoleExists();
2000
1998
  const existingUser = await this.userRepository.getByEmail(config.email);
2001
1999
  if (existingUser) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-auth",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "description": "Authentication and authorization library for najm framework",
5
5
  "type": "module",
6
6
  "files": [