lib/sorcery/providers/xing.rb in sorcery-0.8.6 vs lib/sorcery/providers/xing.rb in sorcery-0.9.0
- old
+ new
@@ -30,10 +30,10 @@
end
def get_user_hash(access_token)
response = access_token.get(user_info_path)
- {}.tap do |h|
+ auth_hash(access_token).tap do |h|
h[:user_info] = JSON.parse(response.body)['users'].first
h[:uid] = user_hash[:user_info]['id'].to_s
end
end