13

User Authentication and Authorization with Passport.js

In this chapter, we will learn how authentication and authorization work in a modern web application. We will explore the cryptography behind many security mechanisms and will learn how to implement these concepts in our web applications using JSON Web Tokens (JWT). We will also see how we can extend our authentication strategies with third-party providers such as Facebook or Spotify with Passport.js.

At the end of this chapter, we will implement authentication and authorization in our web application project iterating over the code that we generated in the previous chapter. We will also learn how to specifically test them.

To sum up, here are the main topics that we will explore in ...

Get Node.js for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.