maintenance commit

This commit is contained in:
Cassio Santos
2020-06-01 10:29:34 -03:00
parent 47f152a145
commit 4f3f1dd484
19 changed files with 926 additions and 293 deletions

View File

@@ -6,7 +6,7 @@ module.exports = (req, res, next) => {
const token = req.get("Authorization").split(" ")[1];
decodedToken = jwt.verify(token, "mysecret");
} catch (err) {
err.statusCode = 500;
err.statusCode = 401;
next(err);
}