Stack Explorer

Passport.js

library

Authentication middleware for Node.js

Features

authnodejsmiddlewareauthentication

Pros and Cons

Ventajas

  • + Over 500 strategies
  • + Modular and extensible
  • + Widely adopted
  • + Easy Express integration

Desventajas

  • - API can be confusing
  • - Scattered documentation
  • - Sessions by default

Use Cases

  • Node.js application authentication
  • OAuth integration
  • Local login
  • Social login