Fix build issue with new interfaces

This commit is contained in:
Jan Oberhauser 2020-04-08 10:08:42 +02:00
parent a00c9e0efb
commit 7a27979ddd

View file

@ -209,8 +209,8 @@ class App {
}); });
} }
jwt.verify(token, getKey, {}, (err: Error, decoded: object) => { jwt.verify(token, getKey, {}, (err: jwt.VerifyErrors, decoded: object) => {
if (err) return ResponseHelper.jwtAuthAuthorizationError(res, "Invalid token"); if (err) return ResponseHelper.jwtAuthAuthorizationError(res, 'Invalid token');
next(); next();
}); });