Due to TikTok’s requirement to verify URL ownership for all redirect URLs, TikTok cannot be used with Dynamic shared credentials in sandbox or production environments. You will need create an app with custom credentials. To go to production, you will need use to contact us for custom domains.

Creating a new sandbox application

• When you are creating your app, make sure to specify “Configure for Web” for your app type (it will be treated as a web app in the context of OAuth)

• Your OAuth client_id is referred to as client_key

• As of September 2024, TikTok requires Terms of Service URL, Privacy Policy URL, your Desktop or web URL, Redirect URI and Webhooks Callback URL

• TikTok docs and pre-requisites can be found here

Here are the step-by-step instructions for obtaining OAuth credentials for TikTok:

  1. Go to the TikTok Developer Portal and sign in to your account.
  2. Once you’re signed in, click on “Connect an app”
  3. Fill out the “App name” and specify if this is for an Individual or an Organization, then click “Confirm”
  4. Make sure that “Sandbox” is selected. Sandbox applications do not require domain verification
  5. Fill out the “Category”, “Description”, “Terms of Service URL”, “Privacy Policy URL”
  6. Select “Web” under “Platforms”
  7. Under “Products”, select “Add Products” and click on “Login Kit”
  8. Under “App info” paste your “Redirect URL” (Redirect URL can be found in the Dynamic dashboard https://app.dynamic.xyz/dashboard/log-in-user-profile#social-tiktok)
  9. Enter your “Website URL”.
  10. In order to allow test users to login, click “Add account” under “Target Users” and link an existing TikTok account
  11. Click save under the form.
  12. Copy and paste the “Client Key” and “Client Secret” and paste it into “Set up TikTok Auth” Modal in the Dynamic Dashboard.

That’s it! You now have OAuth credentials for your TikTok application that you can use in Dynamic.

Creating a production app (Enterprise Only)

Follow the same instructions above for setting up an app.

In order for you to add the callback URI, you will need to follow these steps

  1. Click on URL Properties in the top right of the TikTok developer Portal
  1. In the next modal, click on Verify properties
  1. Click on Domain and enter app.dynamicauth.com and click Verify to the right of the text box
  1. In the next screen, click on Copy to the right of the TXT record and send it to us. After this click Verify. Note that the domain verification will not work until we have added the record on our domain
  1. Once we have confirmed the record is added, click on Continue to verify and verify the domain
  1. Add the callback URI specified in our dashboard under TikTok settings
  2. Continue with your TikTok app submission