Step one
We need to create a service called jwToken.
Go to api/services directory and create jwToken.js.
'use strict';
const jwt = require('jsonwebtoken'),
tokenSecret = "secretissecret";
module.exports = {
// Generates a token from supplied payload
issue(payload) {
...