How to use PassportJS for authentication in NodeJS

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

Our great sponsors
  • SurveyJS - Extensible JavaScript Form Builder Libraries
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Sonar - Write Clean JavaScript Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
  • simple-passport-app

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

  • node

    Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:

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

  • SurveyJS

    Extensible JavaScript Form Builder Libraries. SurveyJS is a set of four fully customizable JS libraries that allow you to create, easily modify, and run multiple web forms in any web app, while retaining all sensitive data on your own servers.

  • 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