Compare commits
2 Commits
3fa770880b
...
97b0599c0f
Author | SHA1 | Date |
---|---|---|
Alie | 97b0599c0f | |
Alie | f859cdeeb1 |
|
@ -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