Skip to content

Commit

Permalink
pass the oauth_callback when getting the request token. this allows
Browse files Browse the repository at this point in the history
developing on localhost by setting myHostname properly.
see: https://dev.twitter.com/docs/api/1/post/oauth/request_token
  • Loading branch information
Visnu Pitiyanuvath committed Jul 21, 2011
1 parent 4cfe2e9 commit e558bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/oauth.js
Expand Up @@ -100,7 +100,7 @@ everyModule.submodule('oauth')
}

var p = this.Promise();
this.oauth.getOAuthRequestToken( function (err, token, tokenSecret, params) {
this.oauth.getOAuthRequestToken({ oauth_callback: this.myHostname() + this.callbackPath() }, function (err, token, tokenSecret, params) {
if (err && !~(err.data.indexOf('Invalid / expired Token'))) {
return p.fail(err);
}
Expand Down

0 comments on commit e558bf6

Please sign in to comment.