Session check
Request
URI: /sessionCheck?{parameters}
Example usage: https://{callback_url}/sessionCheck?{parameters}
The request is executed using the GET
method.
This method is used to verify the user's session.
note
If the player has left the page, the session is not valid.
Request parameters
Name | Type | Required | Description |
---|---|---|---|
token | string | Yes | Authorization code of user's session Restrictions: 1..250 |
userId | string | Yes | The unique identifier of the user |
Response parameters
Name | Type | Required | Description |
---|---|---|---|
status | boolean | Yes | Response status code for Call back API Accepted values: true , false |
newToken | string | No | New token If it is not transferred, the token that was sent when the game was launched will be used. If new token exists, then previous token will be replaced New token will be used as an authorization code of user's session for the further transactions |
errors | object | No | Description of errors in case status = false |
errors.code | number | No | Error code |
errors.error | string | No | Error description |
Examples of a successful responses
Success response
Response: /sessionCheck?{parameters}
{
"status": true
}
Success response with new token
Response: /sessionCheck?{parameters}
{
"status": true,
"newToken": "XXXXXXXXXXXXXXX"
}
Example of an unsuccessful response
Response: /providersList
{
"status": false,
"errors": {
"code": 400,
"error": "Description"
}
}