GetTokenIDResult
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see GetTokenIDResult for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see GetTokenIDResult for Unreal Engine SDK.
Get ID token from QueryIDToken
cache result.
Function definition
public static INTLIDTokenResult GetIDTokenResult();
Input parameters
No input parameters are required.
Code sample
INTLIDTokenResult result = INTLAPI.GetIDTokenResult();
Return value
The structure that contains the JWT encoded string retrieve in exchange of the login information, that could be send to PlayFab authentication servers.
IDTokenResult: Takes the INTLAuthResult data structure to construct QueryIDTokenResult
Member variables | Type | Note |
---|---|---|
IdToken | string | Player Network SDK unique OpenID, encoded in JWT string format |
INTLAuthResult: Inherits from INTLBaseResult and contains authentication information.
Parameter | Type | Description |
---|---|---|
OpenID | string | Player Network SDK unique user ID Default: 64-bit/32-bit unsigned integer string |
Token | string | Player Network SDK user authorization token Length: 40 bytes, see Token |
TokenExpire | long | Token expiration timestamp Example: 1600844518 |
FirstLogin | int | Whether it is the first login of the user -1: Unknown 0: No 1: Yes |
UserName | string | User defined nickname |
Gender | int | Gender 0: Undefined 1: Male 2: Female |
Birthdate | string | Date of birth Example: 1987-02-23 |
PictureUrl | string | Profile avatar URL |
Pf | string | pf value for Midas payments |
Pfkey | string | pf key for Midas payments |
NeedRealNameAuth | bool | Whether real-name verification is required |
ChannelID | int | Channel ID |
Channel | string | Channel definition For more information, see Channel definition |
ChannelInfo | string | Third-party channel authentication information (JSON string) Different channels have different values |
BindList | string | Linking information (JSON string array) |