Rename to accesscontrol.canonicalScopeString

This commit is contained in:
Girish Ramakrishnan
2018-06-17 22:42:18 -07:00
parent 6a2dacb08a
commit b6b7d08af3
4 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ function addTokenByUserId(clientId, userId, expiresAt, callback) {
if (error) return callback(error);
var token = tokendb.generateToken();
var scope = accesscontrol.canonicalScope(result.scope);
var scope = accesscontrol.canonicalScopeString(result.scope);
tokendb.add(token, userId, result.id, expiresAt, scope, function (error) {
if (error) return callback(new ClientsError(ClientsError.INTERNAL_ERROR, error));