Skip to content

al-saloul/nodejs-express-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use the project

run this command

node app.js

use these endpoints

for login use as POST verb

with one of these payloads:

{ "username": "admin", "password": "adminpassword" }
{ "username": "user", "password": "userpassword" }
http://localhost:3000/login

for login use as GET verb and put the token on header as Bearer

http://localhost:3000/protected

About

A simple auth API with Nodejs and express with JWT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published