Showing posts with label Passportjs. Show all posts
Showing posts with label Passportjs. Show all posts

Mar 30, 2014

How to create a login in Node.js with PassportJS and MongoDB?


In this post we will create a very simple login system in Node.js & Express with the help of PassportJS. We also need the help of Mongoose to access databases created in MongoDB.

Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more.