Public APIs
TikTok favicon

TikTok

Social

Fetches user info and user's video posts on TikTok platform.

TikTok's website screenshot

About TikTok

Login Kit for Web is a TikTok developer product that lets web applications authenticate users through TikTok and obtain an access token for the user's account. The documentation covers app registration, redirect URI configuration, and the OAuth authorization grant flow, including front-end integration of a login button and server-side handling of the authorization redirect, anti-forgery state tokens, and access token refresh before expiry.

It is intended for developers building web apps that need to offer "Continue with TikTok" login functionality. Requirements include registering the app in the TikTok developer portal to obtain a client key and secret, and configuring up to 10 static, HTTPS redirect URIs under 512 characters each, with no query parameters or URL fragments permitted.

Key features

  • Web-based OAuth login flow for authenticating TikTok users
  • Issues an access_token for the TikTok user after successful authentication
  • Supports registering up to 10 redirect URIs per app
  • Anti-forgery state token generation to prevent CSRF attacks during login
  • Server-side refresh flow handling before access token expiry

Frequently asked questions

What is Login Kit for Web used for?

It enables web apps to authenticate users with TikTok and obtain an access_token for the user.

What are the requirements for redirect URIs?

Redirect URIs must be absolute HTTPS URLs under 512 characters, must be static with no parameters or fragments, and a maximum of 10 can be registered.

How do I get credentials to use Login Kit?

You must register your app and obtain a client key and secret from the developer portal at developers.tiktok.com under Manage apps.

What must the server-side implementation handle?

The server must securely store the client secret and refresh token, prevent request forgery attacks, handle token refresh before expiry, and manage the access token request flow for each user.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product