Get TokenID (GetTokenIDResult)
Get the ID token from the result cache of QueryIDToken.
Function Definition
public static INTLIDTokenResult GetIDTokenResult();
Input Parameters
No input parameters.
Code sample
INTLIDTokenResult result = INTLAPI.GetIDTokenResult();
Return Value
Returns IDTokenResult, compiling the information obtained from the login status into a JWT-encoded string, which can be sent to the PlayFab game server for authentication.
IDTokenResult: Constructed using INTLAuthResult data.
| Member Variable | Type | Description |
|---|---|---|
| IdToken | string | Player Network SDK unique OpenID, using JWT encoded string format |
INTLAuthResult: Inherits from INTLBaseResult and contains login information
| Parameters | typology | Explanation |
|---|---|---|
| OpenID | String | Player Network SDK user unique identification Defaults to a 64-bit unsigned integer string, can also support 32-bit. |
| Token | string | Player Network SDK generated user token Length: 40 bytes, see Token for detail. |
| TokenExpire | long | Token expiration timestamp For example: 1600844518. |
| FirstLogin | int | Is first login Unknown: -1 No: 0 Yes: 1 |
| UserName | string | Nickname |
| Gender | int | Gender 0: Undefined 1: Male 2: Female |
| Birthdate | string | Returns empty due to compliance requirements prohibiting the collection of player birth dates. |
| PictureUrl | string | Avatar URL |
| Pf | string | pf value, used for Midas payment |
| Pfkey | string | pf key, used for Midas payment |
| NeedRealNameAuth | bool | Is real name authentication required |
| ChannelID | int | Channel number |
| Channel | String | Channel name For more information, see Channel Definition |
| ChannelInfo | String | Third-party channel login information (JSON data) Value varies with each channel |
| BindList | string | Binding information (JSON array type) |