controller code below:
async isAuthorised (req, res) { const token = req.cookies; //req.body.token; let response = authMiddleware.decodeJWT(token);