Class: OmniAuth::Strategies::Threads

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/threads.rb

Instance Method Summary collapse

Instance Method Details

#callback_urlObject



22
23
24
# File 'lib/omniauth/strategies/threads.rb', line 22

def callback_url
  super.split("?").first
end

#raw_infoObject



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_paramsObject



15
16
17
18
19
20
# File 'lib/omniauth/strategies/threads.rb', line 15

def token_params
  super.tap do |params|
    params.client_secret = options.client_secret
    params.client_id = options.client_id
  end
end