Switched to local MongoDB

This commit is contained in:
Malak
2024-08-18 14:43:18 +03:00
committed by QkoSad
parent 78ba14cc98
commit 8e83b6b8df
8 changed files with 40 additions and 26 deletions
-1
View File
@@ -13,7 +13,6 @@ function auth(req: ResponseAndUser, res: Response, next: NextFunction) {
return res.status(401).json({ msg: 'No token, authorization denied' });
}
console.log('auth middlewarwe')
// Verify token
try {
jwt.verify(token, config.get('jwtSecret'), (error, decoded) => {