Now it's time to secure our API. To do this, let's start by installing our two NPM modules. Open a Terminal window and run the following command:
$ npm install --save express-jwt express-jwt-permissions
Once the installation is done, let's validate our token.