LegacyScrypt.verify()
Method of LegacyScrypt
. Verifies the password with the hash using scrypt.
Definition
function verify(hash: string, password: string): Promise<boolean>;
Parameters
hash
password
Example
const validPassword = await scrypt.verify(hash, password);