@foal/core
Version:
Full-featured Node.js framework, with no complexity
10 lines (9 loc) • 445 B
TypeScript
/**
* Compare a plain text password and a hash to see if they match.
*
* @export
* @param {string} plainTextPassword - The password in clear text.
* @param {string} passwordHash - The password hash generated by the `hashPassword` function.
* @returns {Promise<boolean>} True if the hash and the password match. False otherwise.
*/
export declare function verifyPassword(plainTextPassword: string, passwordHash: string): Promise<boolean>;