Authentication
This request is sent to operators's callback url to authenticate the user in the game
| path | /auth |
|---|---|
| method | POST |
| Content-Type | application/json |
| headers | X-Client-Id, X-Client-TS, X-Client-Signature |
Request
- Parameters
- Example
| Parameter | Description |
|---|---|
| user_token | String - Player's token on the operators's side |
| session_token | String - Token generated by provider for current game session |
| platform | Enum - mobile desktop |
| currency | String - Game currency. (currency code) |
{
"user_token": "53dac65af9e735d08328a5aa4a009266d20a6103dde7d58ad3f5d20c3f31c420",
"session_token": "j0CzDA2aq4rRZ03V4KBTvncDcgbBHEuoDsNEVBlkDc1UpfWkHjNgzHPoAzrBEpZd",
"platform": "mobile",
"currency": "USD"
}
Response
- Parameters
- Success Example
- Error Example
| Parameter | Description |
|---|---|
| code | Number - response status code |
| message | String - response explanation |
| data | Object
|
{
"code": 200,
"message": "ok",
"data": {
"user_id": "180",
"username": "Dan321",
"balance": 49992,
"currency": "GEL"
}
}
{
"code": 401,
"message": "Invalid user token",
"data": {}
}