Skip to content

thisisbrad/node-auth-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-auth-jwt

Node | Express | MongoDB | Passport

Boilerplate Node Passport authenication with JWTs using passport-local and passport-jwt. I used node-jsonwebtoken by Auth0 for the tokens. Users are stored to MongoDB and passwords are encrypted using node-bcrypt.

This bolierplate includes basic:

  • Sign Up route
  • Login route
  • Protected route

You need to create a keys.js file in the /config

  mongoURI: 'mongodb://localhost:27017/DATABASE_NAME',
  JwtSecret: '~corey*trevor~'

About

Simple Node JWT authentication boilerplate.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published