Skip to content

Commit

Permalink
Merge branch 'oauth_verifier_fix' of https://github.com/paulswartz/me…
Browse files Browse the repository at this point in the history
…teor into paulswartz-oauth_verifier_fix
  • Loading branch information
Emily Stark committed Feb 13, 2014
2 parents 57c8630 + d5b466e commit 6e27602
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/oauth1/oauth1_binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var querystring = Npm.require("querystring");
// An OAuth1 wrapper around http calls which helps get tokens and
// takes care of HTTP headers
//
// @param config {Object}
// @param config {Object}
// - consumerKey (String): oauth consumer key
// - secret (String): oauth consumer secret
// @param urls {Object}
Expand Down Expand Up @@ -48,14 +48,11 @@ OAuth1Binding.prototype.prepareAccessToken = function(query, requestTokenSecret)
self.accessTokenSecret = requestTokenSecret;

var headers = self._buildHeader({
oauth_token: query.oauth_token
});

var params = {
oauth_token: query.oauth_token,
oauth_verifier: query.oauth_verifier
};
});

var response = self._call('POST', self._urls.accessToken, headers, params);
var response = self._call('POST', self._urls.accessToken, headers);
var tokens = querystring.parse(response.content);

self.accessToken = tokens.oauth_token;
Expand Down

0 comments on commit 6e27602

Please sign in to comment.