Skip to main content

Get TokenID (GetTokenIDResult)

AndroidiOSWindows
If you're using the Unity engine, see GetTokenIDResult for 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

NameTypeExplanation
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.

ParameterstypologyExplanation
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)