From c8dc8df659428c5011890ceaf6b9c0e44cf42dbd Mon Sep 17 00:00:00 2001 From: Alexander Koptelov Date: Tue, 16 Jan 2018 11:10:55 +0300 Subject: [PATCH] Allow empty oauth_token value (#342) --- lib/oauth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauth.js b/lib/oauth.js index 50dccf99..e9c8fbe5 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -265,7 +265,7 @@ exports.OAuth.prototype._prepareParameters= function( oauth_token, oauth_token_s "oauth_consumer_key": this._consumerKey }; - if( oauth_token ) { + if( oauth_token || oauth_token === '' ) { oauthParameters["oauth_token"]= oauth_token; }