Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added delete results["access_token"];

added delete results["access_token"];

Added delete results["access_token"]; to stay consistent with delete
results["refresh_token"];
  • Loading branch information...
commit ebd556136149aee587aaaee25194d057ea5a3477 1 parent 2be7086
Sanjay Gidwani authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/oauth2.js
1  lib/oauth2.js
View
@@ -136,6 +136,7 @@ exports.OAuth2.prototype.getOAuthAccessToken= function(code, params, callback) {
}
var access_token= results["access_token"];
var refresh_token= results["refresh_token"];
+ delete results["access_token"];
delete results["refresh_token"];
//passing results to the callback as other implementations return additional information
Please sign in to comment.
Something went wrong with that request. Please try again.