Do not dump token in logs

This commit is contained in:
Girish Ramakrishnan
2018-06-17 15:01:42 -07:00
parent 12e55d1fab
commit 669a1498aa
+1 -1
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);
debug('exchange: new access token for client %s token %s', client.id, token.slice(0, 6)); // partial token for security
callback(null, token);
});