Authentication in Mern Stack.
Authentication is a big problem for a website, app. As it divides content for different people, authorization of a content to edit, view, delete and update.
Points to consider for Authentication.
Never ever store passwords
Storing someone's password is not considered as a good practice, if by chance your data gets in wrong hands, it can lead to massive breach of a user data, personal information and identity.
Always hash passwords before storing.
To read more about hashing, follow this Link.
Giving user a nice user experience.
For more Better and Trustful user experience.
Use a third party API's like Google Auth, Facebook Auth. so that user can trust your website.
Things to remember.
- Never Store Passwords.
- Third party Authentication for best experience.
for more you should definitely see this video from fireship.io
Top comments (0)