Skip to content

Start login with Tiktok

Request

Starts the Tiktok login flow. This call returns an authorization URL to redirect the user to.

Security
ClientAccessToken
Bodyapplication/jsonrequired
device_idstring, <= 80 characters

Identifier of the device from which the authentication request originates

redirect_uristringrequired

The URI the identity provider will redirect the user to after authentication. Must match one of the pre-configured redirect URIs in the application's social login settings. This URI will receive the authorization code that can be exchanged for user information.

Example:"https://www.example.com/login"
statestring

An opaque string that is used to maintain state between the request and the callback. It will be added to the redirect URI as a query parameter, which should be validated by your server to protect against cross-site request forgery (CSRF) attacks

curl -i -X POST \
  https://api.sbx.transmitsecurity.io/cis/v1/auth/social/tiktok/start \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "device_id": "string",
    "redirect_uri": "https://www.example.com/login",
    "state": "string"
  }'

Responses

Backend auth initialized successfully.

Bodyapplication/json
authorization_urlstringrequired

The social provider's authorization URL that the client should redirect the user to in order to authenticate with this social provider.

Example:"https://www.provider.com/auth"
Response
{ "authorization_url": "https://www.provider.com/auth" }