What is "passport-js"

Passport is an authentication middleware for . Extremely flexible and modular, Passport can be inserted unobstructed into any web application based on . A comprehensive set of strategies supports authentication using a username and password, Facebook, Twitter, etc.

The only purpose of Passport is to authenticate requests, which occurs through an extensible set of plugins known as strategies. Passport does not mount routes or assume any specific database schema, which maximizes flexibility and allows decisions at the application level to be made by the developer. The API is simple: you provide Passport with a request for authentication, and Passport provides Hooks to control what happens when authentication is successful or not.

Among its main functionalities are:

  • More than 300 authentication strategies
  • Single login with Openid and Oauth
  • Easily handle successful and authentication failure
  • Supports persistent sessions
  • Scope and dynamic permissions
  • Possibility to implement customized strategies
  • Does not mount routes in the app
  • Light code base

Related links: