From da73fa524115a9f8365b4b3d4b186a301e2d3329 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sun, 27 Dec 2020 19:06:46 +0100 Subject: [PATCH] Removed temp authguard measure, will need to refactor it anyays --- api/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/index.js b/api/index.js index 90449b1..1165be8 100644 --- a/api/index.js +++ b/api/index.js @@ -33,13 +33,13 @@ app.use(helmet()); // Server app.listen(port, () => console.log(`App listening on port ${port}`)); -// Auth guard +// TEMP Auth guard const authguard = (req, res, next) => { - if (req.headers.auracle_key !== process.env.API_KEY_PUBLIC) { - return res.status(401).send('The API key is either missing or incorrect.'); - } else { + // if (req.headers.auracle_key !== process.env.API_KEY_PUBLIC) { + // return res.status(401).send('The API key is either missing or incorrect.'); + // } else { next(); - } + // } } // Routing