From 7a27979ddd5a129417e523fd90bfcc241639cee3 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 8 Apr 2020 10:08:42 +0200 Subject: [PATCH] :zap: Fix build issue with new interfaces --- packages/cli/src/Server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 2664dcf5a..d71ada00e 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -209,8 +209,8 @@ class App { }); } - jwt.verify(token, getKey, {}, (err: Error, decoded: object) => { - if (err) return ResponseHelper.jwtAuthAuthorizationError(res, "Invalid token"); + jwt.verify(token, getKey, {}, (err: jwt.VerifyErrors, decoded: object) => { + if (err) return ResponseHelper.jwtAuthAuthorizationError(res, 'Invalid token'); next(); });