User Authentication With Auth0

 

User Authentication With Auth0: MERN Tutorial





Welcome, everyone! Today, I started this article and I will show you how to authenticate a user. I will share the client side as well as the server side code. I am not only doing this to help You, but also to help myself in the future. That is why, if you have any considerations/questions, don’t hesitate to share them in the comment section! So, place your booty in a comfortable position and Let’s Get Right Into It! I have this project. It is a real-estate application. People can review a property that is for sale. People can review a property that is for rent. People can book a visit for couple of days, like Airbnb. Let’s click on a property that is available.Here we can see the property. We can see the position through the map. However, a very important thing to note is that we are not logged in as any user.

This is what we will be doing in this technical article. If you want to achieve the authentication, you can do it simply in couple of steps. The things that you will need, is an API about the user (POST). Then bcrypt (or anything really), to encrypt the password. Save the user with the encrypted password in the DB. Whenever we try to login with a user, the following things will be happening on the system. A user makes a request to the API. The API encrypts the password provided in the query and checks it against the encrypted password from the DB. If they match, this is our…

Post a Comment

0 Comments