Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 718 Bytes

File metadata and controls

16 lines (12 loc) · 718 Bytes

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~'