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
| Name | Type | Description |
|---|---|---|
| id_token | FINTLIDToken | The 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
| Name | Type | Description |
|---|---|---|
| IdToken | FString | Player Network SDK unique OpenID |
FINTLAuthResult: Inherits from FINTLBaseResult and contains login information.
| Parameters | Type | Description |
|---|---|---|
| OpenID | FString | Player Network SDK user unique identifier |
| Token | FString | Player Network SDK user token |
| TokenExpire | int64 | Token expiration timestamp For example: 1600844518. |
| FirstLogin | int32 | Is it the first login? Unknown: -1 No: 0 Yes: 1 |
| UserName | FString | Nickname |
| Gender | int32 | Gender 0: Undefined 1: Male 2: Female |
| Birthdate | FString | Returns empty due to compliance requirements prohibiting the collection of player birth dates. |
| PictureUrl | FString | Avatar URL |
| Pf | FString | pf value, used for Midas payment |
| Pfkey | FString | pf key, used for Midas payment |
| NeedRealNameAuth | bool | Is real name authentication required |
| ChannelID | int32 | Channel number |
| ChannelName | FString | Channel name For more information, see Channel Definition |
| ChannelInfo | FString | Third-party channel login information (JSON data) |
| BindList | FString | Binding information (JSON array type) |