Securing the REST controller

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset