June 2025
Intermediate to advanced
837 pages
24h 50m
English
Without security there is no freedom.—Wilhelm von Humboldt
If you use Node.js as a server on the web, one of the most common problems is authenticating users. For both read and write accesses, it’s important which user is accessing the information and whether or not the user is authorized for this operation. Because this is a standard problem, there are also several established solutions you can deploy in your application. Passport has proven itself in the area of Express applications. In this chapter, you’ll learn how to use this tool to secure your server and assign data to specific users.
This chapter is based on the movie database you developed in the previous chapters. Pug is used as the template engine ...
Read now
Unlock full access