This commit is contained in:
Tom Moor
2017-05-27 11:22:42 -07:00
parent 639a0ec45c
commit 044486b9a6
4 changed files with 8 additions and 21 deletions

View File

@ -48,7 +48,7 @@ export default function auth({ require = true } = {}) {
},
});
} catch (e) {
throw httpErrors.Unauthorized('Invalid api key');
throw httpErrors.Unauthorized('Invalid API key');
}
if (!apiKey) throw httpErrors.Unauthorized('Invalid token');