Skip to content

Commit

Permalink
Allow empty oauth_token value (ciaranj#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoptelov committed Jan 16, 2018
1 parent a7f8a1e commit c8dc8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c8dc8df

Please sign in to comment.