lib/omniauth/strategies/threads.rb in omniauth-threads-0.1.1 vs lib/omniauth/strategies/threads.rb in omniauth-threads-0.1.2
- old
+ new
@@ -26,20 +26,26 @@
uid { raw_info['id'] }
info do
- {}
+ {
+ :nickname => raw_info['username'],
+ :name => raw_info['username'],
+ :email => raw_info["email"],
+ :image => raw_info['threads_profile_picture_url'],
+ :description => raw_info['threads_biography'],
+ }
end
extra do
{
'raw_info' => raw_info
}
end
def raw_info
- @raw_info ||= access_token.get('/me').parsed
+ @raw_info ||= access_token.get('/me?fields=id,username,threads_profile_picture_url,threads_biography').parsed
end
end
end
end