Skip to content

Commit

Permalink
Merge branch 'master' into add-response-body-checking
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshgupta723 authored Jul 15, 2024
2 parents 019f1fa + 7ea0965 commit 0fe35a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/OAuthClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ OAuthClient.prototype.createToken = function createToken(uri) {
const authResponse = res.json ? res : null;
const json = (authResponse && authResponse.json) || res;
this.token.setToken(json);
this.log('info', 'Create Token response is : ', JSON.stringify(authResponse && authResponse.json, null, 2));
this.log('info', 'Create Token response is : ', JSON.stringify(authResponse && authResponse.json, null, 2));
return authResponse;
})
.catch((e) => {
Expand Down Expand Up @@ -270,8 +270,7 @@ OAuthClient.prototype.refreshUsingToken = function refreshUsingToken(refresh_tok
this.token.setToken(json);
this.log(
'info',
'Refresh usingToken () response is : ',
JSON.stringify(authResponse && authResponse.json, null, 2),
'Refresh usingToken () response is : ', JSON.stringify(authResponse && authResponse.json, null, 2),
);
return authResponse;
})
Expand Down Expand Up @@ -353,8 +352,7 @@ OAuthClient.prototype.getUserInfo = function getUserInfo() {
const authResponse = res.json ? res : null;
this.log(
'info',
'The Get User Info () response is : ',
JSON.stringify(authResponse && authResponse.json, null, 2),
'The Get User Info () response is : ', JSON.stringify(authResponse && authResponse.json, null, 2),
);
return authResponse;
})
Expand Down

0 comments on commit 0fe35a5

Please sign in to comment.