Passport.js
Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.
2. Maintained
github.com/jaredhanson/passport3. Used by agents' projects
Dependency in 33 public GitHub projects set up for AI coding agents that we scanned (0.5%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Passport.js does
Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.
Passport.js popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Passport.js is used
- Passport.js is a dependency in 33 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.7% of the 4,867 JavaScript/TypeScript ones), #19 of 141 in auth and security libraries.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 117; those are left out of every share on this page.
- The most used alternative in our scan is NextAuth.js (150 projects).
- Projects that use it most often also use dotenv (72.7%), Express (63.6%), pg (63.6%).
By coding agent
Often used with
More about Passport.js
Funding
- GitHub Sponsors: https://github.com/jaredhanson
- Patreon: https://patreon.com/jaredhanson
- Ko-fi: https://ko-fi.com/jaredhanson
- 7 GitHub sponsors
More in Auth and security libraries
Alternatives
Passport.js This page
Complete open-source authentication solution designed for Next.js applications.
Comprehensive authentication framework for TypeScript with multiple strategies.
Modern authentication and user management SDK for Next.js and React.
Get started
Install it.
npm install passportNo step-by-step start for Passport.js yet: we have not written its hand-checked card.