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 no longer valid.
Request parameters
Name | Type | Required | Description |
---|---|---|---|
token | string | Yes | Authorization code of the 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 Callback API Accepted values: true , false |
newToken | string | No | New token If it is not passed, the token sent when the game was launched will be used If a new token is provided, it will replace the previous one The new token will be used as the authorization code for the user's session in future 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"
}
}