Skip to content

Commit

Permalink
Correct error name for rejecting an unauthorized access token
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Aug 17, 2019
1 parent 3819a42 commit 8e0bae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/indieauth/check-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = (requiredScope, tokenScope) => {
if (!tokenScope) {
throw new IndieKitError({
status: 401,
error: 'Unauthorized',
error: 'Insufficient scope',
error_description: 'Access token does not provide any scope(s)'
});
}
Expand Down

0 comments on commit 8e0bae9

Please sign in to comment.