O'Reilly logo

Building APIs with Node.js by Caio Ribeiro Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required