Skip to main content

Get TokenID (GetTokenIDResult)

AndroidiOSPC

If you are using the Unity engine, please refer to GetTokenIDResult in the Unity SDK.

Get the ID token from the result cache of QueryIDToken.

Function definition​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static int GetIDTokenResult(FINTLIDToken& id_token_result)

Input Parameters​

NameTypeDescription
id_tokenFINTLIDTokenThe returned ID token can be sent to PlayFab game server for authentication.

Code sample​

FINTLIDTokenResult result;
UINTLSDKAPI::GetIDTokenResult(result);

Return Value​

Returns FINTLIDTokenResult.

FINTLIDTokenResult: Constructed from FINTLAuthResult data

NameTypeDescription
IdTokenFStringPlayer Network SDK unique OpenID

FINTLAuthResult: Inherits from FINTLBaseResult and contains login information.

ParametersTypeDescription
OpenIDFStringPlayer Network SDK user unique identifier
TokenFStringPlayer Network SDK user token
TokenExpireint64Token expiration timestamp
For example: 1600844518.
FirstLoginint32Is it the first login?
Unknown: -1
No: 0
Yes: 1
UserNameFStringNickname
Genderint32Gender
0: Undefined
1: Male
2: Female
BirthdateFStringReturns empty due to compliance requirements prohibiting the collection of player birth dates.
PictureUrlFStringAvatar URL
PfFStringpf value, used for Midas payment
PfkeyFStringpf key, used for Midas payment
NeedRealNameAuthboolIs real name authentication required
ChannelIDint32Channel number
ChannelNameFStringChannel name
For more information, see Channel Definition
ChannelInfoFStringThird-party channel login information (JSON data)
BindListFStringBinding information (JSON array type)