Skip to content

Commit

Permalink
Merge pull request #7 from burtcorp/fix-callback-error
Browse files Browse the repository at this point in the history
Fix callback error
  • Loading branch information
embeage authored Aug 1, 2022
2 parents 230f5a9 + 510b197 commit e2619c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/omniauth/strategies/tiktok_oauth2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class TiktokOauth2 < OmniAuth::Strategies::OAuth2
USER_INFO_URL = 'https://business-api.tiktok.com/open_api/v1.2/user/info/'
option :name, "tiktok_oauth2"
option :client_options,
site: 'https://business-api.tiktok.com',
authorize_url: 'https://ads.tiktok.com/marketing_api/auth',
token_url: 'https://business-api.tiktok.com/open_api/v1.2/oauth2/access_token'
site: 'https://business-api.tiktok.com/',
authorize_url: 'https://ads.tiktok.com/marketing_api/auth/',
token_url: 'https://business-api.tiktok.com/open_api/v1.2/oauth2/access_token/'

option :pkce, true

Expand Down Expand Up @@ -49,7 +49,7 @@ def token_params
options.token_params.merge(
app_id: options.client_id,
secret: options.client_secret,
auth_code: request.params["code"],
auth_code: request.params["auth_code"],
parse: :tiktok,
)
end
Expand Down

0 comments on commit e2619c3

Please sign in to comment.