API Reference
Rockets Core API
nestjs-password
classes
PasswordStrengthService

Class: PasswordStrengthService

Service to validate password strength

Implements

  • PasswordStrengthServiceInterface

Constructors

new PasswordStrengthService()

new PasswordStrengthService(settings): PasswordStrengthService

Parameters

ParameterTypeDescription
settingsPasswordSettingsInterfacePassword module settings

Returns

PasswordStrengthService

Defined in

packages/nestjs-password/src/services/password-strength.service.ts:20 (opens in a new tab)

Properties

PropertyModifierTypeDescription
settingsreadonlyPasswordSettingsInterfacePassword module settings

Methods

isStrong()

isStrong(password): boolean

Method to check if password is strong

Parameters

ParameterTypeDescription
passwordstringthe plain text password

Returns

boolean

password strength

Implementation of

PasswordStrengthServiceInterface.isStrong

Defined in

packages/nestjs-password/src/services/password-strength.service.ts:31 (opens in a new tab)