UNPKG

@wikiccu/nest-auth

Version:

A comprehensive authentication package for NestJS applications with Prisma and PostgreSQL

13 lines (12 loc) 457 B
import { ConfigService } from '@nestjs/config'; export declare class PasswordService { private readonly configService; constructor(configService: ConfigService); hashPassword(password: string): Promise<string>; verifyPassword(password: string, hash: string): Promise<boolean>; generateRandomPassword(length?: number): string; validatePasswordStrength(password: string): { isValid: boolean; errors: string[]; }; }