UNPKG

@withstudiocms/auth-kit

Version:

Utilities for managing authentication

18 lines (17 loc) 621 B
/** * Set of common passwords that should be blocked for security reasons. * This list contains the most commonly used passwords from various data breaches. * * Usage: * import { blockedPasswords } from './passwords'; * * const isPasswordBlocked = blockedPasswords.has(userPassword.toLowerCase()); */ export declare const passwords: Set<string>; /** * Check if a password is in the blocked list (case-insensitive) * @param pass - The password to check * @returns true if the password is blocked, false otherwise */ export declare const isReservedPassword: (pass: string) => boolean; export default passwords;