# Passport: 4.9 out of 10

Keep, but not for new work. 7th of 10 in [Authentication libraries](https://elestia.ai/opensource/auth/index.md).

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

- **Overall: 4.9** (likely 3.9 to 6.2)
  - Claude Opus 5.5 (4.0): 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.
  - GPT-6.2 Sol (5.8): 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.
- **Needed by many: 5.8** (likely 4.7 to 6.9)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.5): 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.
- **Helps a lot: 5.7** (likely 4.6 to 6.8)
  - Claude Opus 5.5 (5.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.
  - GPT-6.2 Sol (6.4): 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.
- **Holds up over time: 3.1** (likely 2.0 to 4.7)
  - Claude Opus 5.5 (3.0): 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.
  - GPT-6.2 Sol (3.2): 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.
- **Used widely: 6.8** (likely 5.7 to 7.9)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (6.6): 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.
- **Vouched for: 6.5** (likely 5.2 to 7.6)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.0): 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.
- **Safe: 5.8** (likely 4.3 to 7.0)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.5): 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.

## 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

- Downloads, 4 weeks: 42M
- In a year: ×2.4
- GitHub stars: 24k
- Commits, 12 months: 0
- Last npm release: Nov 2023
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/jaredhanson/passport
- npm: https://www.npmjs.com/package/passport

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
