Skip to content

checkAuthenticationWebToken

Function · TDLib 1.8.67 · d1085f9c

Checks a web token to log in to the corresponding account; for official Telegram apps only. Works only when the current authorization state is authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation

checkAuthenticationWebToken(
  token: string,
  dc_id: int32
) → Ok

token

string

The token to check

dc_id

int32

Identifier of the datacenter of the user