Skip to main content

Function: createTikTokClient()

createTikTokClient(options): OAuthClient

Defined in: providers/tiktok.ts:17

Build an OAuthClient preconfigured for TikTok's Login Kit. Encodes TikTok's deviations from RFC 6749: the client id is sent as client_key and scopes are comma-separated. The token endpoint returns open_id alongside the tokens, available on TokenResponse.raw.

Parameters

ParameterType
optionsTikTokClientOptions

Returns

OAuthClient