Skip to content

jmchaves/node-passport-jwt-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-passport-jwt-example-app

1) Go to the project folder

2) npm install

3) npm start

Make a post request to login, use localhost:3000/auth/login/

Credentials:

name: javier
password: password123
  • You can use Postman

Test the authentication, use localhost:3000/auth/secret/

Header:

key: Authorization
value: Bearer + token

Example: Login: alt text

Get secret message: alt text