node-jwt-poc-demo.mp4
This project uses MongoDB to store User accounts. Users can register accounts to access protected routes via JWT. We use bcrypt
to salt and hash passwords before storing in Mongo.
Authorization header value must start with JWT
plus one space, and then the JWT eg:
// header shown as JSON
{
"authorization": "JWT yourjwt.tokengoes.here"
}
- The easiest way to test this project is to install the REST Client vscode extension.
- Once installed, open the
api.rest
file at the root of this project
- Once installed, open the
- You will need to create a
.env
file based upon the.env.example
file
npm install
: installs dependenciesnpm start
: starts the project vianodemon