Passport
Keep, but not for new work. 7th of 10 authentication libraries.
Passport is the classic authentication middleware for Express and NestJS, with hundreds of strategy plugins. It still works and runs in a very large number of apps, but the core has had no commit since August 2024 and no release since November 2023. For new work, a maintained peer such as Better Auth is the better pick.
Best for: Teams keeping an existing Express or NestJS app that already uses Passport strategies, or that need a rare login provider only a Passport strategy covers.
Scores
Overall4.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.0, likely 3.0 to 5.5
Passport still works, and its strategy catalog and NestJS integration keep it relevant. But the core is effectively unmaintained, it ships no types, and it does much less than modern peers. Its share is falling well below the median. Keep it where it runs; for new projects, pick Better Auth or, for low-level protocol work, openid-client or jose.
- github commitsLastYear: No activity in the last year
- peers Better Auth downloads: 76M vs 1.8M a year ago, where the ecosystem is moving
- pistack.xyz/posts/2026-09-01-better-auth-vs-authjs-vs-passport-nodejs-authentication-comparison: Advises against Passport for new projects in 2026
- docs.nestjs.com/recipes/passport: Still the documented NestJS path
GPT-6.2 Sol: 5.8, likely 4.7 to 6.9
Passport remains a reasonable choice for Express or NestJS teams that need its strategies and already own their account and session logic. Better Auth is a stronger default for new apps that need built-in account flows, with much more active maintenance and faster relative growth. How much work Passport saves depends on the strategy and the app’s existing infrastructure.
- docs.nestjs.com/recipes/passport: NestJS offers a documented integration for teams that choose Passport strategies.
- better-auth.com/docs/basic-usage: Better Auth includes account and session flows that Passport leaves to the application.
- github commitsLastYear; npm latestPublishedAt; peers Better Auth: Passport had no commits in the past year and much slower download growth than Better Auth.
Needed by many5.8
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most server-side Node apps need sign-in, and Passport covers many providers through strategies. It only fits Node servers with Express-style middleware, which includes NestJS, so it is narrower than the whole category. It does not fit edge runtimes or framework-native setups such as Next.js.
- docs.nestjs.com/recipes/passport: NestJS uses Passport as its documented auth integration
- pistack.xyz/posts/2026-09-01-better-auth-vs-authjs-vs-passport-nodejs-authentication-comparison: Node-only, no edge runtime support
GPT-6.2 Sol: 5.5, likely 4.3 to 6.7
Sign-in and session handling are common needs in web apps. Passport serves the large Node.js middleware ecosystem, especially Express and NestJS, and suits teams that want to own their account logic. Framework surveys show the size of that ecosystem, while Passport’s fit across all JavaScript and TypeScript projects remains an estimate.
- 2025.stateofjs.com/en-US/libraries/back-end-frameworks: Express led back-end framework usage among respondents, and NestJS use was growing.
- github.com/jaredhanson/passport: Node.js middleware for Connect-style frameworks with application-defined routes and storage.
- docs.nestjs.com/recipes/passport: NestJS documents how Passport fits its framework.
Helps a lot5.7
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
The strategy pattern is flexible and proven, and the strategy catalog has no equal. But Passport only checks credentials: sessions, user storage, MFA and account flows are yours to build. Its types come from a community package, the docs are thin, and the callback-style API trips people up. Better Auth gives far more out of the box, with first-class types.
- npm hasTypes: No bundled types
- pistack.xyz/posts/2026-09-01-better-auth-vs-authjs-vs-passport-nodejs-authentication-comparison: No built-in MFA, adapters or rate limiting; types from @types/passport
- dev.to/devansh2002/nodejs-authentication-libraries-in-2026-what-production-teams-actually-use-3ggj: Sparse docs and infrequent releases
- github.com/jaredhanson/passport/issues: 0.7.0 deserialization breakage report; requests for Express 5 examples
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
Version 0.7.0 gives apps a consistent way to use separately installed sign-in and token strategies while keeping control of their users and sessions. Users report more boilerplate than with Better Auth, which provides built-in sign-up and session flows. NestJS has detailed examples, but the core’s callbacks, external types, and older Express examples make generated code harder to verify. Performance depends on the strategy and session store, and the comparative study simulated one Redis-backed design.
- passportjs.org/concepts/authentication/strategies: Documents strategy-specific verification callbacks and separates credential failures from server errors.
- passportjs.org/concepts/authentication/sessions: Applications choose their session middleware and supply user serialization.
- npm latestVersion, hasTypes: Current stable version is 0.7.0 and ships without TypeScript declarations.
- reddit.com/r/node/comments/1se4p7o/what_do_people_use_for_auth_in_modern_apps_these: Developers report extra Passport setup and a smoother experience within NestJS.
- github.com/jaredhanson/passport/issues/1040: An open issue requests current Express examples.
- better-auth.com/docs/basic-usage: Better Auth provides built-in sign-up, social sign-in, and session access.
- people.cs.nycu.edu.tw/~tommyho/publication/MobiSec2025.pdf: A simulated Redis-backed Passport setup showed higher latency than stateless JWTs.
Holds up over time3.1
Will it still be a good choice in two years?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
Zero commits and zero releases in the last year, and the last push was August 2024. One person controls releases, and the 'is this still maintained?' issue has no maintainer reply. The core is small and stable, and NestJS keeps demand alive, so it will keep working for a while. The ecosystem is moving towards Better Auth and similar libraries.
- github commitsLastYear: 0 commits; pushedAt 2024-08-16
- npm latestPublishedAt: Last release 0.7.0 in Nov 2023
- scorecard Maintained: Maintained check scores 0
- github.com/jaredhanson/passport/issues: Issue #1048 asking about maintenance, open and unanswered
GPT-6.2 Sol: 3.2, likely 2.0 to 4.8
The core had zero commits in the past year and last shipped in November 2023. Pull requests have sat open since 2024, and the 0.6.0 logout change broke existing calls. Sponsors and an active NestJS adapter help sustain the ecosystem, but npm metadata lists one maintainer and the next core release remains uncertain.
- github commitsLastYear, openPullRequests; npm latestPublishedAt: Zero commits in a year, 44 open pull requests, and no npm release since November 2023.
- github.com/jaredhanson/passport/pulls: Several proposed fixes and documentation updates have been open for years.
- github.com/jaredhanson/passport/issues/902: A user reported that upgrading to 0.6.0 broke existing logout calls.
- packages.ecosyste.ms/registries/npmjs.org/packages/passport: Package metadata lists one maintainer.
- passportjs.org/sponsors: The project names several sponsors.
- github.com/nestjs/passport/releases: NestJS continues to ship its adapter.
Used widely6.8
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Passport has about 42M downloads per 4 weeks and about 265k dependent repositories, far above every peer except jsonwebtoken. Its yearly ratio is 2.4, well under the 4.1 median, so it is losing share. Better Auth grew about 40x over the same year. Many installs come through NestJS projects and old Express apps rather than fresh choices.
- npm downloadsLast4Weeks: 41.9M now vs 17.6M a year ago, ratio 2.4 vs median 4.1
- dependents repos: 264,838 dependent repos
- bluesky posts: 0 posts, so little current attention
GPT-6.2 Sol: 6.6, likely 5.4 to 7.7
The roughly 265,000 indexed dependent repositories and 4,444 dependent packages show a large installed base, well ahead of Auth.js in the same index. Four-week downloads rose from 17.6 million to 41.9 million, but the 2.39× increase trails the catalog’s 4.1× baseline and signals a loss of relative ground. Repeat installs and existing integrations leave the rate of new adoption uncertain.
- dependents repos, packages; peers Auth.js dependentRepos: Passport has 264,838 indexed dependent repositories versus 19,200 for Auth.js.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; medianDownloadsRatio: Downloads grew 2.39× year over year against a 4.1× catalog baseline.
- github stars; bluesky posts; hackerNews stories: 23,518 stars and no matches in the tracked Bluesky or Hacker News data.
- 2025.stateofreact.com/en-US/other-tools: 415 survey respondents reported using Passport.
Vouched for6.5
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.5 to 7.0
The official NestJS docs build on Passport, and countless production Express apps run it. Current independent comparisons call it a legacy choice and do not recommend it for new projects. There is no recent survey praise or Bluesky and Hacker News attention.
- docs.nestjs.com/recipes/passport: NestJS calls it the most popular Node auth library and builds on it
- dev.to/devansh2002/nodejs-authentication-libraries-in-2026-what-production-teams-actually-use-3ggj: Seen as legacy in production; new builds go to Better Auth
- workos.com/blog/top-authentication-solutions-node-js-2026: Still listed among the main Node auth options in 2026
GPT-6.2 Sol: 7.0, likely 5.8 to 8.1
NestJS still ships an official integration, and NodeBB pins Passport 0.7.0 for its forum software. The survey measures past use, and recent developer reports are mixed. Current evidence of satisfaction across a wider set of production teams is thin.
- github.com/nestjs/passport/releases: The current NestJS adapter release line supports Passport 0.7.0.
- github.com/NodeBB/NodeBB/blob/master/install/package.json: NodeBB pins Passport 0.7.0 alongside its local and bearer strategies.
- 2025.stateofreact.com/en-US/other-tools: The authentication survey asked which tools respondents had used.
- reddit.com/r/node/comments/1se4p7o/what_do_people_use_for_auth_in_modern_apps_these: Users praise the NestJS fit and report boilerplate in other Node.js apps.
Safe5.8
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 4.5 to 7.0
The core has only 3 dependencies and an MIT licence. Its one advisory, about session regeneration, was fixed in 0.6.0. The Scorecard is 2.8, with no code review, branch protection or security policy, and a single publisher. With no maintenance, a fix for any new flaw would be slow. Third-party strategies add uneven risk.
- advisories: 1 moderate advisory (2022), none in the last 24 months
- scorecard score: 2.8; Code-Review, Security-Policy and Branch-Protection all 0
- npm dependencies: 3 dependencies
- github.com/jaredhanson/passport/issues: Open issue on outdated dependencies (#1049)
GPT-6.2 Sol: 5.5, likely 4.0 to 7.0
The MIT-licensed core has three runtime dependencies, and researchers reported a prompt fix for its one known moderate advisory in 0.6.0. Its 2.8 OpenSSF Scorecard is weak, with zeros for branch protection, code review, workflow token permissions, and security policy. One listed npm maintainer and unverified release provenance leave uncertainty about future patches and publishing safeguards.
- npm dependencies, license; advisories total, last24Months: Three runtime dependencies, MIT license, and one known advisory with none in the past 24 months.
- github.com/advisories/GHSA-v923-w3x8-wh69: The known moderate session advisory was patched in 0.6.0.
- usenix.org/system/files/usenixsecurity23-squarcina.pdf: The reporting researchers describe the Passport fix as prompt.
- scorecard score, checks: Score of 2.8 with weak repository safeguards and no usable packaging or signed-release scores.
- packages.ecosyste.ms/registries/npmjs.org/packages/passport: One npm maintainer is listed.
Good
- Its catalog of 500+ strategies covers almost any login provider or protocol.
- It is the auth layer that NestJS documents officially, through @nestjs/passport.
- The core is small, with 3 dependencies, an MIT licence, and an API that has barely changed in years.
- It is a huge installed base: about 265k dependent repositories, and most Node developers have seen it.
Bad
- No commits since August 2024 and no release since 0.7.0 in November 2023, and issues asking about maintenance get no answer.
- It ships no built-in types and depends on the community @types/passport package.
- It only checks credentials: sessions, MFA, user storage, rate limiting and account flows are all left to you.
- It is tied to Node and Express-style middleware, so it does not run on edge runtimes, and strategy plugins vary in quality and upkeep.
The numbers
- npm downloads, 4 weeks
- 42M ×2.4 in a year
- GitHub stars
- 24k
- Commits, 12 months
- 0
- npm version
- 0.7.0 Nov 2023
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- 2.8 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (jaredhanson/passport), npm (passport), OSV and the OpenSSF Scorecard.
Authentication libraries
- 8.5Better Auth
- 8.3jose
- 7.9openid-client
- 6.8iron-session
- 6.3SuperTokens
- 5.2jsonwebtoken
- 4.9Passport
- 4.0Auth.js
- 1.6Arctic
- 1.6Lucia