Skip to main content

GetTokenIDResult

AndroidiOSWindows
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 variablesTypeNote
IdTokenstringPlayer Network SDK unique OpenID, encoded in JWT string format

INTLAuthResult: Inherits from INTLBaseResult and contains authentication information.

ParameterTypeDescription
OpenIDstringPlayer Network SDK unique user ID
Default: 64-bit/32-bit unsigned integer string
TokenstringPlayer Network SDK user authorization token
Length: 40 bytes, see Token
TokenExpirelongToken expiration timestamp
Example: 1600844518
FirstLoginintWhether it is the first login of the user
-1: Unknown
0: No
1: Yes
UserNamestringUser defined nickname
GenderintGender
0: Undefined
1: Male
2: Female
BirthdatestringDate of birth
Example: 1987-02-23
PictureUrlstringProfile avatar URL
Pfstringpf value for Midas payments
Pfkeystringpf key for Midas payments
NeedRealNameAuthboolWhether real-name verification is required
ChannelIDintChannel ID
ChannelstringChannel definition
For more information, see Channel definition
ChannelInfostringThird-party channel authentication information (JSON string)
Different channels have different values
BindListstringLinking information (JSON string array)