/
v3.0.11Get access

restoreLogin

Restores user login session. Without this command, all further commands (e.g., placing bets) will fail with a “Not authenticated” error

Request parameters:

Name
DescriptionTypeValuesDefaultSource
authToken
User's auth tokenstring--
Methodlogin
Key from responseauth_token
userId
User's unique identifier.number--
Methodlogin
Key from responseuser_id

Call example:

restoreLogin({
  command: 'restore_login',
  params: {
    user_id: 1839907287,
    auth_token: 'B79377F65A63205FF16192DAA486D020'
  },
  rid: 564574332
})

Response examples:

{
  code: 0,
  data: {
    user_id: 191114342,
    auth_token: 'A94528E52DF8A081881CF59F1F33B707',
    qr_code_origin: null,
    authentication_status: 0,
    is_new_client: null,
    deposit_count: 0,
    needs_subscriptions_update: false,
    deposit_amount: 0,
    withdrawal_amount: 0,
    time_to_wait_in_minutes: null,
    is_client_restricted: null
  },
  rid: 564574332
}

Response parameters:

NameDescriptionTypeValues
authToken
Valid AuthToken for the userstring-
userId
User ID in Partner system. Must match the user_id in GetClientDetails responsenumber-
is_client_restricted
Indicates info when the player's account is restricted, false when it is not. The key is always present in the login response; its value is null when the platform has no information for that player.booleantrue / false