mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
maintenance commit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user