Function checkPasswordStrength

  • Function that determines the strength of provided password

    Example

    checkPasswordStrength('thisIsPassword')
    returns
    {
    strength: PasswordStrength.weak,
    failingFactors= [
    StrengthFactors.hasDigit,
    StrengthFactors.hasSpecialCharacter
    ]
    }

    Returns

    • Returns Strength of Password And Missing Strengh Factors

    Parameters

    • password: string

      Password to Validate

    Returns { failingFactors: StrengthFactors[]; strength: PasswordStrength }

Generated using TypeDoc