validateScope -> validateScopeString

This commit is contained in:
Girish Ramakrishnan
2018-06-17 22:29:17 -07:00
parent 106e17f7ff
commit 1015b0ad9c
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ exports = module.exports = {
validateRoles: validateRoles,
validateScope: validateScope,
validateScopeString: validateScopeString,
hasScopes: hasScopes,
intersectScope: intersectScope,
canonicalScope: canonicalScope
@@ -56,7 +56,7 @@ function validateRoles(roles) {
return new Error('Invalid role');
}
function validateScope(scope) {
function validateScopeString(scope) {
assert.strictEqual(typeof scope, 'string');
if (scope === '') return new Error('Empty scope not allowed');