Skip to content

Latest commit

 

History

History
executable file
·
29 lines (21 loc) · 422 Bytes

README.md

File metadata and controls

executable file
·
29 lines (21 loc) · 422 Bytes

Authentication using Node JS, JWT and Passport

The API uses Mongoose DB for storing the user information, uses Passport JWT strategy for securing the routes

Version

1.0.0

Usage

npm install
npm start

##Endpoints

POST /users/register
POST /users/authenticate   // Gives back a token
GET /users/profile         // Needs json web token to authorize