Hotfixes all the way down

This commit is contained in:
2023-12-24 05:38:27 +11:00
parent 8ab786b934
commit 288e584cbd
5 changed files with 30 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = (req, res, next) => {
const accessToken = authHeader?.split(' ')[1]; //'Bearer token'
if (!accessToken) {
return res.status(401).send('No access token found');
return res.status(401).send('No access token provided');
}
return jwt.verify(accessToken, process.env.SECRET_ACCESS, (err, user) => {