Skip to content

Commit

Permalink
Fixed issue #9 on GitHub
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Bleigh <michael@intridea.com>
  • Loading branch information
chancancode authored and Michael Bleigh committed Apr 27, 2009
1 parent 0a0ad77 commit 167ddd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/twitter_auth/oauth_user.rb
Expand Up @@ -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)

Expand Down

0 comments on commit 167ddd8

Please sign in to comment.