Skip to main content

Setup

1

Get credentials

Go to the TikTok for Developers portal and create an app. Under Login Kit, add your redirect URI:
2

Configure

lib/theauth.ts

Scopes

Default scopes: user.info.basic
TikTok Login Kit requires app review before production use. During development you can test with sandbox accounts added to your app’s tester list.
This is a preset built on the generic OIDC factory, which reads the user from https://open.tiktokapis.com/v2/user/info/ and requires the response to contain the OIDC sub and email fields. That endpoint returns an open_id nested under data.user and no email, so sign-in is expected to fail with TikTok userinfo response missing required "sub" field. This preset has not been verified against the live service.

Endpoints

Last modified on October 18, 2026