Skip to content

rupachowrasia/node-authentication-passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJs Authentication using Passport

Authentication in NodeJs using passport authentication middleware which covers brief introduction of the following:

  • bcrypt-nodejs [to hash password]
  • connect-flash [allows for passing session flashdata messages]
  • passport [authentication middleware for nodejs]
  • passport-local [passport local login]
  • passport-facebook [to login with facebook]
  • passport-google-oauth[to login with google]
  • passport-twitter [to login with twitter]

New Features

  • Hashing password using bcrypt-nodejs
  • Passing session flashdata messages
  • Using passport authentication middleware

Tech

This repo uses number of packages/modules:

Installation

It requires Node.js v7+ to run. Install the dependencies and devDependencies and start the server.

$ cd node-authentication-passport
$ npm install
$ npm start

Screen-shots

1. Index Page

index

2. Login Page

login

3. Signup Page

signup

4. Dashboard Page

dashboard