UNPKG

core-api-lib

Version:

Core library with all microservice utilities

7 lines (6 loc) 355 B
export declare class Auth { static MSG_BCRYPT_HASH_ERROR: string; static MSG_BCRYPT_COMPARE_ERROR: string; static hashPassword(password: string, rounds: number, callback: (error: Error, hash: string) => void): void; static compare(password: string, dbHash: string, callback: (error: string | null, match: boolean | null) => void): void; }