Verify a password against a bcrypt hash Useful for testing authentication configurations
Plain text password
Bcrypt hash to verify against
Promise resolving to true if password matches
const isValid = await verifyPassword("my-password", hash); Copy
const isValid = await verifyPassword("my-password", hash);
Verify a password against a bcrypt hash Useful for testing authentication configurations