Skip to content

Commit

Permalink
In order to make two-legged calls between servers I need the oauth_to…
Browse files Browse the repository at this point in the history
…ken value (#52)

to be an empty string.  Checking against 'undefined' accomplishes this.
  • Loading branch information
zeusdude authored and ddo committed Jun 7, 2017
1 parent e988f36 commit a7e5791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth-1.0a.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ OAuth.prototype.authorize = function(request, token) {
token = {};
}

if(token.key) {
if(token.key !== undefined) {
oauth_data.oauth_token = token.key;
}

Expand Down

0 comments on commit a7e5791

Please sign in to comment.