Skip to main content

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

NameTypeRequiredDescription
tokenstringYesAuthorization code of user's session
Restrictions: 1..250
userIdstringYesThe unique identifier of the user

Response parameters

NameTypeRequiredDescription
statusbooleanYesResponse status code for Call back API
Accepted values: true, false
newTokenstringNoNew 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
errorsobjectNoDescription of errors in case status = false
errors.codenumberNoError code
errors.errorstringNoError 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"
}
}