Skip to content

Commit 19a3eca

Browse files
committed
Remove console logging
1 parent 64d1bff commit 19a3eca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/OAuthClient.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ OAuthClient.prototype.refreshUsingToken = function(refresh_token) {
264264

265265
var authResponse = res.json ? res : null;
266266
this.log('info','Refresh Token () response is : ',JSON.stringify(authResponse, null, 2));
267-
console.log('The new token pair is : ' + JSON.stringify(authResponse.getJson()));
267+
// console.log('The new token pair is : ' + JSON.stringify(authResponse.getJson()));
268268
return authResponse;
269269

270270
}.bind(this)).catch(function(e) {
@@ -347,7 +347,7 @@ OAuthClient.prototype.getUserInfo = function(params) {
347347
}
348348
};
349349

350-
console.log('The request is :'+JSON.stringify(request));
350+
// console.log('The request is :'+JSON.stringify(request));
351351

352352
resolve(this.getTokenRequest(request));
353353

@@ -418,11 +418,11 @@ OAuthClient.prototype.migrate = function(params) {
418418

419419
var authHeader = this.generateOauth1Sign(objectAssign({}, {method: 'POST', uri: uri}, params));
420420

421-
console.log('The Auth header is :'+ authHeader);
421+
// console.log('The Auth header is :'+ authHeader);
422422

423-
console.log('The params is :'+ JSON.stringify(params));
423+
// console.log('The params is :'+ JSON.stringify(params));
424424

425-
console.log('The uri is :'+ uri);
425+
// console.log('The uri is :'+ uri);
426426

427427
var body = {
428428
'scope':(Array.isArray(params.scope)) ? params.scope.join(' ') : params.scope,
@@ -431,7 +431,7 @@ OAuthClient.prototype.migrate = function(params) {
431431
'client_secret': this.clientSecret
432432
};
433433

434-
console.log('The body is :'+ JSON.stringify(body));
434+
// console.log('The body is :'+ JSON.stringify(body));
435435

436436
var request = {
437437
url: uri,
@@ -552,7 +552,7 @@ OAuthClient.prototype.validateIdToken = function(params) {
552552
}.bind(this))).then(function(res) {
553553

554554
this.log('info','The validateIdToken () response is : ',JSON.stringify(res, null, 2));
555-
console.log('the response from jsonwebtoken is :'+JSON.stringify(res, null, 2));
555+
// console.log('the response from jsonwebtoken is :'+JSON.stringify(res, null, 2));
556556
if(res) return true;
557557

558558
}.bind(this)).catch(function(e) {
@@ -657,7 +657,7 @@ OAuthClient.prototype.loadResponse = function (request) {
657657

658658
return popsicle.get(request).then(function (response) {
659659

660-
console.log('The response is :'+ JSON.stringify(response));
660+
// console.log('The response is :'+ JSON.stringify(response));
661661
return response;
662662
});
663663
};

0 commit comments

Comments
 (0)