syntax error fixed

parent 9437abc2
Showing with 1 additions and 1 deletions
......@@ -39,7 +39,7 @@ module.exports = function(req, res, next) {
code: sails.config.pictogram.error_codes.TOKEN_EXPIRED
});
}
if (err) return res.json(401, {message: 'Invalid token');
if (err) return res.json(401, {message: 'Invalid token'});
req.token = token;
next();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment