Simple, unobtrusive authentication for Node.js. (by jaredhanson)

Passport Alternatives

Similar projects and alternatives to Passport

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Passport alternative or higher similarity.

Passport reviews and mentions

Posts with mentions or reviews of Passport. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-24.
  • Non-technical person looking for your help
    2 projects | /r/webdev | 24 Jun 2023
    Next, use something like, this is authentication middleware, and it works similarly for different authentication providers. Carefully read the documentation. OAuth is complicated, but that's because it solves a complicated problem
  • Exploring the Most Commonly Used Folder Names in Popular NPM Packages
    12 projects | | 23 Feb 2023
    lib: The lib folder, short for "library", is mostly used to store the actual source code of the package, but it can also be used to store third-party code, utilities and helpers. Example from passport.
  • Instagram Graph API Explained: How to log in users
    4 projects | | 3 Jan 2023
    passport for authentication
  • Auth.js Authentication for the Web
    10 projects | | 30 Dec 2022
    I went down the rabbithole of using next-auth (now authjs) for a recent project. Having used Passport.js [1] for Oauth2 the last time I was doing node.js ~3 years ago, I found this library to have many footguns as comments/answers on SO and Github.

    Seems like many people are trying to shoehorn their codebase [2] (!!) to make it work with the way the library manages sign-in flow, redirects, cookies, logout, etc. [3]

    These were solved problems in the MEAN stack era with middlewares, but now that Next.js/react is the trend, people are doing everything they can to make it work - from relaxing security configs, to stashing things in the JWT just so some callback can get an additional piece of data.


  • I'm having error saying that req.isAuthenticated() not a function
    2 projects | /r/node | 29 Dec 2022
  • NodeJS + Postgres DB + Passport JWT + Passport Local Login and Authentication
    4 projects | | 19 Jul 2022
    Here I am writing my first blog 😇 about how do we connect a simple [NodeJS Application] 😎( to Postgres and use PassportJS for authentication and authorization.
  • Spotify OAuth2 Authentication in a NestJS Application
    3 projects | | 20 Mar 2022
    As there is no official documentation for integrating this type of authentication with NestJS and development articles usually focus on Google and Facebook integration, this article presents an alternative to integrate the Spotify Authorization Code Flow with NestJS using the Passport authentication middleware along with the passport-spotify strategy.
  • Keycloak Express openid-client
    2 projects | | 25 Feb 2022
    We are going to use this openid-client and passport to connect to keycloak. I install the following
  • Secure API-Auth based on Express - References
    2 projects | /r/node | 9 Jan 2022
    You can use passportjs
  • How to sign out user after a period of time
    5 projects | /r/SaaS | 3 Jan 2022
    I use PassportJS to manage authentication strategies and express-session with connect-redis to manage user sessions. What this means is that when a user logs in, their session is created on redis and has an identifier assigned to it which is stored in a an http only cookie on the user s browser with 2w expiry time. If they login again, I extend the expiration date (possible using express-session)
  • A note from our sponsor - InfluxDB | 26 Feb 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →


Basic Passport repo stats
13 days ago

jaredhanson/passport is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of Passport is JavaScript.

The modern API for authentication & user identity.
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.