debug out the scope
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user