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