Skip to content
This repository

auth_code.get_token raise error #87

shouaya opened this Issue January 16, 2012 · 1 comment

2 participants

cheney Sebastian Gräßl

client.rb line 128
i just fix it with :

 response = request(options[:token_method], token_url, opts)
 parsed = nil
  if response.parsed.is_a?(Hash) 
    parsed = response.parsed
    parsed = JSON::parse(response.parsed)
  raise unless parsed.is_a?(Hash) && parsed['access_token']
  AccessToken.from_hash(self, parsed.merge(access_token_opts))

[response.parsed] sometimes will be String i think

Sebastian Gräßl

see #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.