login
This request authenticates the user and returns an object with authentication token, below see corresponding fields. Based on client configuration, login can require `reCaptcha` restriction. Note that SDK handles validation implementation.
Documentation
Try it now
Request parameters:
Call example:
login({
userName: 'user1234',
password: '12345678!'
})Response examples:
{
code: 0,
hasError: false,
errorDetails: {
key: '',
message: ''
},
data: {
is_client_restricted: false,
user_id: 394777986,
auth_token: '246D1AC60948CD73C3D75C77E8278B90',
qr_code_origin: null,
authentication_status: 0,
is_new_client: null,
deposit_count: 0,
time_to_wait_in_minutes: null,
needs_subscriptions_update: false,
deposit_amount: 0,
withdrawal_amount: 0,
jwe_token: 'eyJhbGciOiJBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIn0.6UfA_Cfvui4cAnEw6gqod_XS-of554OQGFWbxaT8GmrWVpmbwCY7r7xKL_1WbmT20yuCKABHV9HJv0i8u9uVwCwJzhrXQOiY.9OqL4xgJ8vzYHo3m_xPxOQ.ODDqwVazxPblbdge1LPgtPy14xsdIk_UBEVEJowe6BakKzKYPFRH9AbPJK7kD5-spSOrsNO_yUZhyEKOgYiO2BCN0d7xALDj6uEHTAMvmW7w80e2yqQSaJ6b1GkMXH-0BqWMt75oM7ePofG3HD_FAw.1Czf-b_OOZMs-WXum4RDOlx6PV_szEPKYWncLgJ6_8o'
}
}