class OmniAuth::Strategies::Recharge

Public Instance Methods

callback_url() click to toggle source
# File lib/omniauth/strategies/recharge.rb, line 34
 def callback_url
  # make sure the query string doesnt get added to the redirect_uri
  # https://github.com/intridea/omniauth-oauth2/issues/93
  full_host + script_name + callback_path
end
raw_info() click to toggle source
# File lib/omniauth/strategies/recharge.rb, line 29
def raw_info
  api_url = ENV['RECHARGE_API_URL'] || 'https://api.rechargeapps.com/'
  @raw_info ||= access_token.get(api_url).parsed
end