From dc7f70d55f677feaa218498a1e33c61f9992dd2d Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 17 Aug 2023 21:34:04 +0200 Subject: [PATCH] chore: remove logs --- backend/src/middlewares/auth.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/src/middlewares/auth.ts b/backend/src/middlewares/auth.ts index dabac1d74..2ff89bf7e 100644 --- a/backend/src/middlewares/auth.ts +++ b/backend/src/middlewares/auth.ts @@ -268,10 +268,6 @@ function authenticateGithubWebhook(): Handler { const webhookSecret = process.env.GITHUB_WEBHOOK_SECRET; - console.log(webhookSecret); - console.log(authHeader); - console.log(JSON.stringify(req.body)); - try { if (!webhookSecret) { throw new MonkeyError(500, "Missing Github Webhook Secret"); @@ -286,9 +282,6 @@ function authenticateGithubWebhook(): Handler { const untrusted = Buffer.from(authHeader as string, "ascii"); const isSignatureValid = crypto.timingSafeEqual(trusted, untrusted); - console.log(trusted.toString()); - console.log(untrusted.toString()); - if (!isSignatureValid) { throw new MonkeyError(401, "Github webhook signature invalid"); }