mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-16 13:08:29 +08:00
chore: remove logs
This commit is contained in:
parent
7f7d3339fd
commit
dc7f70d55f
1 changed files with 0 additions and 7 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue