.jpg)
Your TikTok refresh token now changes every time you use it. On November 5, 2026, TikTok updated its OAuth docs to say each successful refresh returns a new refresh token, and the old one stops working. If your app saved the token once and kept reusing it, the second refresh fails and the user has to log in again.
In Short
- Since TikTok's November 5, 2026, docs update, each refresh returns a new
refresh_tokenand invalidates the previous one. - The updated page gives two refresh token lifetimes: 180 days in the text and 365 days in its example.
- The User Access Token Management page, also updated on November 5, 2026, says 180 days and warns that reusing a replaced refresh token fails. The older Legacy User Access Token Guide, written for the deprecated v1 endpoints, still says 365 days and doesn't mention invalidation.
- As of November 22, 2026, TikTok's changelog has no entry about the change.
- Apps that only read public TikTok data without user logins don't use these tokens.
What Changed in TikTok Refresh Token Handling?
TikTok now rotates refresh tokens, according to its November 5, 2026, docs: "Refresh tokens are rotated". Refresh token rotation is an OAuth practice in which every refresh issues a new refresh token and revokes the old one, so a leaked token works at most once.
The User Access Token Management page, also updated on November 5, 2026, matches the new behavior: it says a refresh returns a different refresh_token and that reusing a replaced one makes later refreshes fail. The older Legacy User Access Token Guide (last updated August 4, 2026), which covers the deprecated v1 endpoints and is still live, only says the returned token "may be different" from the one you sent. The two pages disagree on more than wording:
Which TikTok Apps Are Affected?
Apps that act for logged-in TikTok users are affected: publishing tools, creator dashboards, and anything built on Login Kit. The riskiest setup is several workers refreshing the same user's token at once. The first call wins, and the second ends up holding a token that no longer works.
If your app only reads public TikTok data without user logins, refresh tokens aren't part of your flow, and nothing changes for you. TikTok's Research API and Commercial Content API use a client access token, which needs no user authorization and comes without a refresh token.
How to Handle TikTok Refresh Token Rotation
Your app needs to treat each refresh as a one-time exchange. Once a refresh token has been used, no retry with it will work; the only way back is a new user authorization.
- Allow one refresh per user at a time, with a lock or a queue.
- Save the new
access_token,refresh_tokenandrefresh_expires_inin one transaction. - Read
refresh_expires_infrom each response instead of hard-coding 365 days. - Ask users to re-authorize before the refresh token expires, and test the flow with 180 days in mind.
TikTok's docs show the refresh request itself as a curl call:
curl --location --request POST 'https://open.tiktokapis.com/v2/oauth/token/' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cache-Control: no-cache' \
--data-urlencode 'client_key=CLIENT_KEY' \
--data-urlencode 'client_secret=CLIENT_SECRET' \
--data-urlencode 'grant_type=refresh_token' \
--data-urlencode 'refresh_token=REFRESH_TOKEN'That request alone doesn't protect you from rotation. Here is our own minimal example of steps 1 and 2 in Python, with the same request wrapped in a per-user lock and a single save:
def refresh_tiktok_token(user_id):
with lock(f"tiktok-refresh:{user_id}"): # one refresh per user
stored = db.get_tokens(user_id)
resp = requests.post(
"https://open.tiktokapis.com/v2/oauth/token/",
data={
"client_key": CLIENT_KEY,
"client_secret": CLIENT_SECRET,
"grant_type": "refresh_token",
"refresh_token": stored.refresh_token,
},
)
data = resp.json()
db.save_tokens( # one transaction
user_id,
data["access_token"],
data["refresh_token"], # the new one
data["refresh_expires_in"],
)
return data["access_token"]For more on working with TikTok data in Python, see our TikTok API Python guide.
What We Don't Know Yet
- When rotation actually started: the page only shows "Last updated November 5, 2026".
- Whether 180 or 365 days is right, and whether 180 days applies only to tokens issued after the update.
- Whether the old refresh token keeps working for a short grace period.
We'll update this post if TikTok publishes a changelog entry or aligns the two pages.
Until TikTok settles on 180 or 365 days, every token lifetime in your code is a guess. If your use case is reading public TikTok data, the Data365 API for TikTok works without user tokens, so the question doesn't apply.
Contact us to start with a 14-day trial.
Extract data from top social media networks with Data365 API
Request a free 14-day trial and get 20+ data types

.jpg)
.jpg)
