We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d8719d commit 92e3b70Copy full SHA for 92e3b70
src/middlewares/Authorization.ts
@@ -9,6 +9,7 @@ async function Authorization(req: Request, res: Response, next: NextFunction) {
9
10
if (isEmpty(token?.data)) {
11
return res.status(401).json({
12
+ code: 401,
13
message: token?.message,
14
})
15
}
0 commit comments