跳到主要内容

Login Flow

Flow

VGP_login_Flow.png

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

NoVariableTypeNote
1user_idlong (bigint)VGP id of this user
2codeint200 if token is valid, otherwise token is not valid. Reason is mentioned in message
3messageStringFailure reason