Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 686 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 686 Bytes

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