Passport.js est un middleware permettant de gérer l'authentification. Il s'intègre très bien avec Express.js. L'authentification est le processus de vérification qu'un utilisateur est bien celui qu'il prétend être.
Notre système d'authentification utilisera un JSON web token.
Un JWT permet à un utilisateur de certifier certaines informations. Il est composé de 3 parties: