Integration Guide > https:/wiki/spaces/KS4GFP/pages/547192833kakaogames.atlassian.net/wiki/x/-A0GLw
목차 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
/auth/validation
Description
Verifies the validity of the accessToken and the player.
Method
POST
Request Headers
Name | Type | Mandatory | Description |
Content-Type | String | Y | "application/json;charset=UTF-8" |
appSecret | String | Y | App Secret |
Authorization | String | Y | Authorization: KakaoAK {ADMIN_KEY} |
kgAppId | String | Y | KG App ID |
platform | String (Enum) | Y | Access Platform (web, launcher, mobile, pc) |
accessToken | String | Y | Access Token |
playerId | String | N | Player ID. Used for comparison validation. |
Note for Launcher (Square) Users
The platform type for the platform access token in the launcher (Square) is "launcher".
When performing SDK login through the launcher (FKGTPlayer::LoginWithBridgeToken), the platform type for the access token is "pc".
Request Body
None
Response Status Code
Status Code | Status Code Description | Status Code Detailed Description |
---|---|---|
200 | Normal Response | Normal |
400 | Bad Request | Unparsable request data, missing mandatory parameters, or parameter type error |
401 | Unauthenticated | Authentication failed > Game Kick |
406 | Not Acceptable | Cannot process > Game Kick |
4xx (custom status) | Player Abnormal State | Re-login required to clear abnormal state > Game kick |
500 | Internal Server Error | Internal server system error |
503 | Service Unavailable | Service unavailable (e.g., internal server timeout) |
Response Body
Name | Type | Description |
---|---|---|
player | PlayerAllResponse | Player information |
PlayerAllResponse
Name | Type | Description |
---|---|---|
kgAppId | String | KG App ID |
playerId | String | Player ID |
status | String | Player status |
nickname | String | Nickname |
data | Map | Additional data |
Example Request
|
Example Response
|
...