From 35618894fbfaed06b5459243065488422e581b60 Mon Sep 17 00:00:00 2001 From: Christiaan Scheermeijer Date: Thu, 12 Mar 2020 17:11:49 +0100 Subject: [PATCH] chore(auth): remove eslint comment and update error message --- src/routes/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/index.js b/src/routes/index.js index 9aeb1e3..aeca425 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -62,7 +62,6 @@ router.get('/:identifier', (req, res) => { }) router.post('/jwt', async (req, res) => { - // eslint-disable-next-line camelcase const { id, apiKey, scopes } = req.body if (!id || !apiKey) { @@ -91,7 +90,7 @@ router.post('/jwt', async (req, res) => { if (!micromatch.isMatch(scopes[index], keyPair.scopes)) { return res.status(403).send({ success: false, - message: `The scope '${scopes[index]}' is not allowed` + message: `You don't have access to the requested '${scopes[index]}' scope` }) } }