diff --git a/lib/omniauth-notion.rb b/lib/omniauth-notion.rb index ca41906..add24c0 100644 --- a/lib/omniauth-notion.rb +++ b/lib/omniauth-notion.rb @@ -39,9 +39,7 @@ class Notion < OmniAuth::Strategies::OAuth2 end extra do - { - 'raw_info' => raw_info - } + { 'raw_info' => raw_info } end # The Notion API requires HTTP Basic Authentication when exchanging the @@ -70,32 +68,6 @@ def raw_info def callback_url full_host + script_name + callback_path end - - # def callback_url - # if @authorization_code_from_signed_request - # '' - # else - # options[:callback_url] || super - # end - # end - - # def callback_url - # # If redirect_uri is configured in token_params, use that - # # value. - # token_params.to_hash(symbolize_keys: true)[:redirect_uri] || super - # end - - def query_string - # This method is called by callback_url, only if redirect_uri - # is omitted in token_params. - if request.params['code'] - # If this is a callback, ignore query parameters added by - # the provider. - '' - else - super - end - end end end end