In this tutorial, we’ll be implementing authentication via Facebook and GitHub in a Node.js web application. For this, we’ll be using Passport, an authentication middleware for Node.js. Passport supports authentication with OpenId/OAuth providers.
Before getting started, make sure you have Node.js installed on your machine.
We’ll begin by creating the folder for our app and then accessing that folder on the terminal:
mkdir AuthApp cd AuthApp
To create the node app we’ll use the following command:
You’ll be prompted to provide some information for Node’s
package.json. Just hit enter until the end to leave the default configuration.
Next, we’ll ...