node app.js
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 asBearer
http://localhost:3000/protected