From 2397dd8e353dd6bcb1dfc3ce4e3ea93a2885149b Mon Sep 17 00:00:00 2001 From: Hafiz Mohsin Ayoob Date: Thu, 5 Dec 2024 14:05:31 +0500 Subject: [PATCH] fix: signature generation for Delete method with payload --- src/utils/auth/signature.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/auth/signature.ts b/src/utils/auth/signature.ts index effcf1f322..02dfcd2315 100644 --- a/src/utils/auth/signature.ts +++ b/src/utils/auth/signature.ts @@ -43,7 +43,7 @@ const generateSignature = ( let params = {}; try { - const methodsWithBody = ['POST', 'PUT', 'PATCH']; + const methodsWithBody = ['POST', 'PUT', 'PATCH', 'DELETE']; if (methodsWithBody.includes(req.method)) { params = req.body; }