The video for this lesson is currently being updated, please read the transcript instead.

Logging in

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.

Route

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/".

To view the complete lesson you'll need to login or join this course.


Click to load comments...