June 2025
Intermediate to advanced
837 pages
24h 50m
English
In this chapter, you learned how to implement an authentication process in your application using a combination of Express and the Passport middleware. Passport is a flexible platform for a variety of different authentication mechanisms, of which the local strategy is one of the simplest. Other strategies support login via Facebook, Twitter, or other third-party services.
With authentication working and session middleware included, you can keep credentials on the server even across a page reload, allowing your application to be personalized.
User information allows you to assign records to specific users, restrict access to specific resources, and implement features such as a rating system.
Read now
Unlock full access