JSON Web Token Authentication with Nodejs, Express, and Passport
Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. Passport-jwt is a passport strategy for authenticating with a JSON Web Token. This module lets you authenticate endpoints using a JSON web token.