Middleware for Authentication
Understand how to authenticate the user before any further execution of the business logic.
We'll cover the following...
In this lesson, we’ll create a middleware authentication to verify the users before any execution of the business logic can take place. The way middleware authentication works is more natural than creating a function and calling it each time we need to authenticate a user.
Middleware works similarly to calling a function each time. We delegate the authentication to the Express ...