issues25489
p31729568 5 years ago
parent b762a57b7a
commit 8274d64e78

@ -39,8 +39,8 @@ module OmniAuth
def raw_info
access_token.options[:mode] = :query
@raw_info ||= begin
res = access_token.get('/oauth2.0/me')
JSON.parse(res.body.to_s[10..-4])
res = access_token.get('/oauth2.0/me', parse: :text).parsed
JSON.parse(res.to_s[10..-4])
end
end

Loading…
Cancel
Save