Class: OmniAuth::Strategies::TiktokLoginkit

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

Overview

rubocop:disable Style/Documentation

Defined Under Namespace

Classes: AccessToken, NoAuthorizationCodeError

Constant Summary collapse

USER_INFO_URL =
"https://open.tiktokapis.com/v2/user/info/"

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



52
53
54
55
56
# File 'lib/omniauth/strategies/tiktok_loginkit.rb', line 52

def authorize_params
  super.tap do |params|
    params[:client_key] = options.client_key
  end
end

#callback_urlObject



65
66
67
# File 'lib/omniauth/strategies/tiktok_loginkit.rb', line 65

def callback_url
  full_host + callback_path
end

#token_paramsObject



58
59
60
61
62
63
# File 'lib/omniauth/strategies/tiktok_loginkit.rb', line 58

def token_params
  super.tap do |params|
    params[:client_key] = options.client_key
    params[:client_secret] = options.client_secret
  end
end