debug out the scope

This commit is contained in:
Girish Ramakrishnan
2018-06-27 13:54:10 -07:00
parent a958c01974
commit ce4424d115
+2 -2
View File
@@ -102,7 +102,7 @@ function initialize() {
tokendb.add(token, authCode.userId, authCode.clientId, expires, scope, function (error) {
if (error) return callback(error);
debug('exchange: new access token for client %s token %s', client.id, token.slice(0, 6)); // partial token for security
debug('exchange: new access token for client %s token %s (scope: %s)', client.id, token.slice(0, 6), scope); // partial token for security
callback(null, token);
});
@@ -121,7 +121,7 @@ function initialize() {
tokendb.add(token, user.id, client.id, expires, scope, function (error) {
if (error) return callback(error);
debug('grant token: new access token for client %s token %s', client.id, token.slice(0, 6)); // partial token for security
debug('grant token: new access token for client %s token %s (scope: %s)', client.id, token.slice(0, 6), scope); // partial token for security
callback(null, token);
});