This commit is contained in:
Mr Swift
2024-08-07 13:52:07 +03:30
parent d2c4bd4a30
commit 13f991eab2
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -36,6 +36,7 @@ const authentication = {
req.user_id = decoded._id
return next()
} catch (err) {
console.log(err)
return res401(res, 'unauthorized')
}
},
@@ -72,6 +73,7 @@ const authentication = {
req.user_id = decoded._id
return next()
} catch (err) {
return res401(res, 'unauthorized')
}
},