Use SCOPE_PROFILE constant

This commit is contained in:
Girish Ramakrishnan
2018-04-27 21:16:49 -07:00
parent cc113d0bb5
commit 6e3b060615
4 changed files with 22 additions and 26 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ function setupOauth(app, options, callback) {
var appId = app.id;
var redirectURI = 'https://' + app.fqdn;
var scope = 'profile';
var scope = clients.SCOPE_PROFILE;
clients.delByAppIdAndType(appId, clients.TYPE_OAUTH, function (error) { // remove existing creds
if (error && error.reason !== ClientsError.NOT_FOUND) return callback(error);