Passport.js alternatives in 2022

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • passport-api-docs

    Documentation for Passport.js.

    I got sick of Passport’s lack of documentation and wrote my own docs: https://github.com/jwalton/passport-api-docs. This is my most starred GitHub repo. :P

  • node-client-sessions

    secure sessions stored in cookies

    If all you are interested in is logging in with a password, then rolling your own auth middleware and adding something like encrypted client sessions (see https://github.com/mozilla/node-client-sessions) will get you pretty far. If you need to support logging in with Facebook or Google or LDAP or Apple, or all of the above, then Passport is your friend (even if they’re a confusing friend).

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • a12n-server

    An open source lightweight OAuth2 server

    a12n-server. Lightweight, Node.js. Just run npm start to run it and all based around OAuth2. I've been working on this for almost 5 years =)

  • nodejs-auth

    Implementation of node.js authentication with social login ✌️, user impersonation 💅, and no passport.js required 💁

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts