KazimRaza-dev / social-authentication

Node JS web app with sign-up with Google, Facebook and GitHub features and storing the data into mongoDB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

=> Run below command to run the app: node index.js

=> Using Passport.js library of NodeJS, app includes sign-up with google, facebook and Github functionality,

=> The controller file 'google-auth.js' contains all the code for authentication with google feature.

Steps for OAuth:

  1. First I need to create a app that will give me client ID, secret key and redirect URI from developer console(Google/facebook/github).
  2. Install and import required packages.
  3. Pass these three parameters to Google Strategy.
  4. Implement the code.

About

Node JS web app with sign-up with Google, Facebook and GitHub features and storing the data into mongoDB.


Languages

Language:JavaScript 64.9%Language:EJS 35.1%