Login Flow
Flow

Authentication URL
Description
Valid a user token
Request
Protocol
GET
URL
https://{authentication_domain}/{game_id}/{sdk_version}/account/authenticate?user_token={user_token} in which
- authentication_domain: Authentication domain in document
- game_id: Specific game id which will be sent privately to each partner.
- sdk_version: Specific sdk_version which will be sent privately to each partner.
- user_token: VGP user token which can be extracted from VGP userinfo when user logins successfully.
Response
Content-Type
application/json
Format
{
"userid": {user_id},
"code": {code},
"message": "token expired"
}
in which
| No | Variable | Type | Note |
|---|---|---|---|
| 1 | user_id | long (bigint) | VGP id of this user |
| 2 | code | int | 200 if token is valid, otherwise token is not valid. Reason is mentioned in message |
| 3 | message | String | Failure reason |