©  Caio Ribeiro Pereira 2016

Caio Ribeiro Pereira, Building APIs with Node.js , 10.1007/978-1-4842-2442-7_7

7. Authenticating Users

Caio Ribeiro Pereira

(1)São Vicente - SP, São Paulo, Brazil

Our API already has tasks and users resources, which, thanks to the Sequelize framework, are integrated into a SQL database , in our case SQLite3 . We have already implemented their routes via the main routing functions provided by Express.

In this chapter, we explore the main concepts and implementations of user authentication. After all, this is an important step to ensure that our users can manage their tasks safely.

Introduction to Passport.js and JWT

About Passport.js

There is a very cool Node.js module that is easy to work with for user authentication called ...

Get Building APIs with Node.js 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.