From 44c26f2715f2a14df5609b8d1b9de332b8003275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Mattrat?= Date: Thu, 16 Jun 2022 13:40:32 +0200 Subject: [PATCH] ExpressMiddlewareVerify stop the callback chain ExpressMiddlewareVerify inner function shouldn't return the result of verify as it stop the callback chain. --- lib/webhook-signature-jwt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webhook-signature-jwt.js b/lib/webhook-signature-jwt.js index 9cbd134..c0c6a72 100644 --- a/lib/webhook-signature-jwt.js +++ b/lib/webhook-signature-jwt.js @@ -126,7 +126,7 @@ function ExpressMiddlewareVerify(secret, opts = DefaultVerifyOptions) { body = req.body; } - return verify(url, body, jwt, sk, opts); + verify(url, body, jwt, sk, opts); }).then(next).catch(err => next(err)); }; }