v1.0.0 #28
|
@ -34,7 +34,7 @@ class AuthControler {
|
|||
if (authHeader) {
|
||||
const token = authHeader.split(" ")[1];
|
||||
|
||||
jwt.verify(token, authTokenSecret, (err, app) => {
|
||||
jwt.verify(token, authTokenSecret, (err, _) => {
|
||||
if (err) {
|
||||
return res.status(403).json("Invalid token provided");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue