As the bcrypt documentation addresses, in order to compare a hash to a plain text we must implement the compare function like so:
bcrypt.compare(myPlaintextPassword, hash).then(function(result) { //do stuff });
but there seems to be no way to tell the function the rounds of salting. How does the functions gets that number?