Get TokenID (GetTokenIDResult)
AndroidiOSPC
If you are using Unreal Engine, please refer to GetTokenIDResult in the Unreal Engine SDK.
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 | Explanation |
|---|---|---|
| IdToken | string | Player Network SDK unique OpenID, using JWT encoded string format |
INTLAuthResult: Inherits from INTLBaseResult and contains login information
| Parameters | Type | 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) |