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 no longer valid.

Request parameters

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

Response parameters

NameTypeRequiredDescription
statusbooleanYesResponse status code for Callback API
Accepted values: true, false
newTokenstringNoNew 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
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"
}
}