Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed Twitter module's authorize path from /oauth/authorize to /oau…

…th/authenticate, so you only need to authorize once (see https://dev.twitter.com/docs/auth/sign-in-with-twitter)
  • Loading branch information...
commit 45ebf55dd2fc25bf1aac2bfc4283fca46c042103 1 parent 7602f6d
@bnoguchi authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/modules/twitter.js
View
1  lib/modules/twitter.js
@@ -7,6 +7,7 @@ oauthModule.submodule('twitter')
.oauthHost('https://api.twitter.com')
.entryPath('/auth/twitter')
.callbackPath('/auth/twitter/callback')
+ .authorizePath('/oauth/authenticate')
.fetchOAuthUser( function (accessToken, accessTokenSecret, params) {
var promise = this.Promise();
this.oauth.get(this.apiHost() + '/users/show.json?user_id=' + params.user_id, accessToken, accessTokenSecret, function (err, data) {

1 comment on commit 45ebf55

@visnup

hah, I was about to send you a pull request for this.

Please sign in to comment.
Something went wrong with that request. Please try again.