One of the things missing in our authentication system is a login route. So in this video, we're going to create one.
To do this, we'll create a new endpoint where the client can POST the user's email and password, and we'll respond to that with a valid authorization token.
Let's beginning by create a route. We'll call the router again, and create a sub path "/login" so the full URI is "/users/login/".
Click to load comments...