Skip to content

kanion/simple-passport-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use it?

  1. Login send json by POST method with Content-Type application/json header { "email": "john@mail.com", "password": "john123" }

to http://localhost:3000/token

  1. Copy token from response
  2. Send GET to http://localhost:3000/user

Content-Type application/json header Authorization JWT {pastedtoken}

replace {pastedtoken} by your token from step 1

About

simple nodejs authentication with passport and jwt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published