Basic Auth 2
Auth2 is a sample authentication platform for Node and Express. It is built with Express-Sessions, Passport, and MongoDB and supports multi-user and role based authorization.
Basic node authentication Example
Dont forget to great a
.env file in root to set enviormental variables in
dev mode. These should be manually set on production server. Make sure to
.gitignore this file. It should not be checked into version control. Example:
DATABASE = mongodb://localhost:27017/PROJECT SESSION_SECRET = MYSECRET