We will be going through the following steps to build this API. 1. Installation: Make sure you have NodeJS, npm, and MongoDB installed on your system to move forward with the blog. Create a project folder and use the terminal to run the command npm...

Markdown supported · ⌘↵ to post
Your article is good to start :)
But there are some errors.
Firstly, you shouldn't return status 500 if it's not a internal error, bad credential is a 4xx. Not a big mistake, but if you give your API to an other dev he'll thing your server is broken.
Secondly, for security concern, you shouldn't give any informations except that the given informations were wrong when a user is trying to signing in (no "password incorrect").
Hope it will help other.
Perfect timing I am working on this exact tech stack right now in a project. Good article Prachi Mane .
ForgetPasses
Creator of a user authentication service
Hey very good post! I hope you writemore posts like this with other authentication packages :D