Tools/jaredhanson/passport

Passport

Simple, unobtrusive authentication for Node.js

23.5kgrowthJavaScriptMIT Licensenew this week

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Mar 2026

Passport is the authentication middleware for Node.js that supports 500+ strategies. It plugs into Express (or any Connect-compatible framework) and gives you a strategy-based system where each login method is a plugin.

MIT, JavaScript. The architecture is simple: pick a strategy (passport-local for email/password, passport-google-oauth20 for Google), configure it, add two routes (login and callback), done. There are 500+ community strategies covering everything from Twitter to LDAP to TOTP.

Fully free. No paid tier, no hosted service. Every strategy is open source. Solo to large teams: free across the board. Passport is the most battle-tested auth library in the Node ecosystem. If you're on Express, it's probably already in your dependencies.

The catch: Passport is showing its age. The core hasn't had a major update in years. Session-based authentication is the default pattern, and while you can do JWT and stateless auth, it's not native. Modern alternatives like Lucia or Auth.js (formerly NextAuth) have better TypeScript support, better documentation, and patterns that match current web architecture. For new projects, especially Next.js or other modern frameworks, Passport feels like reaching for the old reliable when newer options fit better.

Free vs Self-Hosted vs Paid

fully free

Fully open source under MIT. No paid tier, no hosted service. All 500+ strategies are community-maintained and free. Zero cost at any scale.

Free. Always has been. Community-maintained strategies for every auth method.

Self-hosting ops:trivial
View pricing page →

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
63/100 · B
Adoption27/30
Maintenance0/25
Community11/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 23,533 starsActive community: 1,251 forksPermissive license (MIT)

About

Stars
23,530
Forks
1,254

Explore Further

More tools in the directory