Class: OmniAuth::Strategies::Threads
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Threads
- Defined in:
- lib/omniauth/strategies/threads.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
22 23 24 |
# File 'lib/omniauth/strategies/threads.rb', line 22 def callback_url super.split("?").first end |
#raw_info ⇒ Object
46 47 48 |
# File 'lib/omniauth/strategies/threads.rb', line 46 def raw_info @raw_info ||= access_token.get('/me?fields=id,username,threads_profile_picture_url,threads_biography').parsed end |
#token_params ⇒ Object
15 16 17 18 19 20 |
# File 'lib/omniauth/strategies/threads.rb', line 15 def token_params super.tap do |params| params.client_secret = .client_secret params.client_id = .client_id end end |