1
0
Fork 0

added message for 401

This commit is contained in:
Kim, Jimin 2021-09-14 13:06:37 +09:00
parent 7d64b466a1
commit 108caa0baa

View file

@ -8,7 +8,7 @@ import config from "../config.json"
const checkIfLoggedIn = (req: Request, res: Response, next: NextFunction) => {
if (req.isAuthenticated()) return next()
res.status(401).send()
res.status(401).send("Not authenticated")
}
export default (app: Express): void => {