From 21e0064d971438bef96a1f30de236cfad7b62fd7 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 22 Jul 2020 22:19:08 -0400 Subject: [PATCH] wh fixes --- src/api/routes/Webhook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/Webhook.ts b/src/api/routes/Webhook.ts index 5d6d897..8d91671 100644 --- a/src/api/routes/Webhook.ts +++ b/src/api/routes/Webhook.ts @@ -10,7 +10,7 @@ export default class Webhook extends Route { public bind() { this.router.get('/s1', async (req, res) => { try { - if (req.headers.authorization !== this.server.security.keys.iv.toString()) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED }); + if (req.headers.authorization !== this.server.security.keys.iv.toString('base64')) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED }); const embed = new RichEmbed(); embed.setTitle('Service Request'); embed.setDescription(req.body.url);