diff --git a/src/routes/oauth2.js b/src/routes/oauth2.js index 264f03f72..30c7a2d00 100644 --- a/src/routes/oauth2.js +++ b/src/routes/oauth2.js @@ -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); });