Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PasswordStrengthPolicyValidator<Account>

Type parameters

Hierarchy

  • PasswordStrengthPolicyValidator

Implemented by

Methods

Methods

validate

  • validate(password: string, account: Account): Promise<void>
  • Validates password strength.

    throws

    {Exception} With ErrorCodes.WEAK_PASSWORD error code when password is weak.
    Error message should contain the cause why password is considered weak.

    Parameters

    • password: string

      Provided password by user.

    • account: Account

      Account for which password is validated.

    Returns Promise<void>