Password hashing is an important mandatory feature which should be implemented in your Node.js API. Thanks to the package "bcrypt" hashing password is really easy. The same goes also for validating the password.
As I am doing this YouTube series named "Advanced REST API with Express JS", I have also implemented the password hashing algorithm. Feel free to watch this video.
If you want to learn best practices for developing your Node.js REST API then you can watch the whole playlist on: https://www.youtube.com/watch?v=CLdkGgv9Miw&list=PLs1waz0ZKTGO7agN0cntpe6ro6TIka0ow&index=2&t=0s
Please support me by subscribing to my channel.