From a7e5791a75732b852cb36d3cb1f343fe120ab6e5 Mon Sep 17 00:00:00 2001 From: zeusdude Date: Wed, 7 Jun 2017 04:45:07 -0400 Subject: [PATCH] In order to make two-legged calls between servers I need the oauth_token value (#52) to be an empty string. Checking against 'undefined' accomplishes this. --- oauth-1.0a.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth-1.0a.js b/oauth-1.0a.js index b4d27ce..e6aef5b 100644 --- a/oauth-1.0a.js +++ b/oauth-1.0a.js @@ -70,7 +70,7 @@ OAuth.prototype.authorize = function(request, token) { token = {}; } - if(token.key) { + if(token.key !== undefined) { oauth_data.oauth_token = token.key; }