Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue #9 on GitHub

Signed-off-by: Michael Bleigh <michael@intridea.com>
  • Loading branch information...
commit 167ddd884f619de2e517bdbabc80e46eb5933f62 1 parent 0a0ad77
@chancancode chancancode authored Michael Bleigh committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  app/models/twitter_auth/oauth_user.rb
View
2  app/models/twitter_auth/oauth_user.rb
@@ -13,6 +13,8 @@ module ClassMethods
def identify_or_create_from_access_token(token, secret=nil)
raise ArgumentError, 'Must authenticate with an OAuth::AccessToken or the string access token and secret.' unless (token && secret) || token.is_a?(OAuth::AccessToken)
+ token = OAuth::AccessToken.new(TwitterAuth.consumer, token, secret) unless token.is_a?(OAuth::AccessToken)
+
response = token.get(TwitterAuth.path_prefix + '/account/verify_credentials.json')
user_info = handle_response(response)
Please sign in to comment.
Something went wrong with that request. Please try again.