mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 05:09:18 +00:00
🗑added public folder content to gitignore
This commit is contained in:
@@ -14,9 +14,7 @@ module.exports = (req, res, next) => {
|
||||
}
|
||||
|
||||
if (!decodedToken) {
|
||||
const error = new Error("Falha na autenticação");
|
||||
error.statusCode = 401;
|
||||
next(error);
|
||||
return res.status(401).json({ message: "Unauthorized" });
|
||||
}
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user