Skip to Main Content
Node.js for Beginners
book

Node.js for Beginners

by Ulises Gascón
May 2024
Beginner to intermediate content levelBeginner to intermediate
382 pages
7h 59m
English
Packt Publishing
Content preview from Node.js for Beginners

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Node.js: Novice to Ninja

Node.js: Novice to Ninja

Craig Buckler
Node.js - The Complete Guide

Node.js - The Complete Guide

Academind by Maximilian Schwarzmüller GmbH
JavaScript from Beginner to Professional

JavaScript from Beginner to Professional

Rob Percival, Laurence Svekis, Maaike van Putten, Codestars By Rob Percival

Publisher Resources

ISBN: 9781803245171Supplemental Content