Hotfixes all the way down
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user