Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
chore(auth): remove eslint comment and update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Mar 12, 2020
1 parent 90febbd commit 3561889
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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`
})
}
}
Expand Down

0 comments on commit 3561889

Please sign in to comment.