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...
1 parent 2be7086 commit ebd556136149aee587aaaee25194d057ea5a3477 @gidzone committed Sep 4, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/oauth2.js
View
1 lib/oauth2.js
@@ -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

0 comments on commit ebd5561

Please sign in to comment.