©  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 live online training, plus books, videos, and digital content from nearly 200 publishers.