A node authentication example
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
models
public
routes
seeder
views
.eslintrc.json
.gitignore
README.md
app.js
package.json

README.md

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