How to use PassportJS for authentication in NodeJS

This page summarizes the projects mentioned and recommended in the original post on dev.to

Civic Auth - Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com
featured
SurveyJS - JavaScript Form Builder with No-Code UI & Built-In JSON Schema Editor
Add the SurveyJS white-label form builder to your JavaScript app (React/Angular/Vue3). Build complex JSON forms without coding. Fully customizable, works with any backend, perfect for data-heavy apps. Learn more.
surveyjs.io
featured
  1. simple-passport-app

    I've included the content for main.js and styles.css which you can copy over here

  2. Civic Auth

    Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.

    Civic Auth logo
  3. node

    Node.js JavaScript runtime ✨🐢🚀✨

    First thing's first, let's setup our server. (PS: You might want to make sure you have nodejs installed on your machine first)

  4. react-native-auth0

    React Native toolkit for Auth0 API

    The majority of the codebases I've worked on over the years have always favoured using JSON web-tokens (JWT) or Authentication-as-a-Service platforms (Auth0, Okta etc) for authentication logic. These are indeed excellent choices! however, on smaller projects I find these to always seem to be overkill. Recently I started working on a chrome extension that performs social sign-in using twitter OAuth API and decided to use passport.js to outsource some of the heavy lifting involved in setting up authentication. Below I walk through the benefits and step-by-step guide in getting started with passport.js for authentication

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

  • From React to React Native – A Beginner-Friendly Guide🚀

    3 projects | dev.to | 17 Sep 2024
  • Nextjs Oauth2 Integration with AuthAction

    2 projects | dev.to | 13 May 2025
  • How to Use Postgres MCP Server with GitHub Copilot in VS Code

    3 projects | dev.to | 12 May 2025
  • How to Build a simple REST API with Node, Express and MongoDB

    2 projects | dev.to | 9 May 2025
  • Como Criar Facilmente Extensões para o VSCode

    2 projects | dev.to | 7 May 2025

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?