Skip to content

Commit 92e3b70

Browse files
committed
fix: middleware auth
1 parent 9d8719d commit 92e3b70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/middlewares/Authorization.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ async function Authorization(req: Request, res: Response, next: NextFunction) {
99

1010
if (isEmpty(token?.data)) {
1111
return res.status(401).json({
12+
code: 401,
1213
message: token?.message,
1314
})
1415
}

0 commit comments

Comments
 (0)