The password hash to verify against.
The password attempt to verify.
A promise that resolves to a boolean indicating whether the password attempt matches the password hash.
const passwordHash = await generatePasswordHash('password'); // default options used
const isPasswordValid = await verifyPasswordHash(passwordHash, 'password'); // default options used
Verifies a password hash against a password attempt.