Use asynchronous bcrypt methods
To avoid locking the server while passwords are being hashed, call bcrypt.hash
and bcrypt.compare
instead of bcrypt.hashSync
and bcrypt.compareSync
.
Callbacks and Promises are both available.
To avoid locking the server while passwords are being hashed, call bcrypt.hash
and bcrypt.compare
instead of bcrypt.hashSync
and bcrypt.compareSync
.
Callbacks and Promises are both available.