Obtain IdToken (GetTokenIDResult) [Player Network SDK only]
[Player Network SDK Only] Retrieve the IdToken from the cached results of QueryIDToken
Supported Platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
GUAIDTokenResult GetIDTokenResult();
static bool GetIDTokenResult(GUAIDTokenResult &id_token);
Input Parameters
- Unity
- Unreal Engine
No parameters are passed.
| Parameters | Type | Description |
|---|---|---|
| id_token | GUAIDTokenResult | The returned ID token can be sent to PlayFab game server for authentication. |
Return Value
Data structure GUAIDTokenResult. Returns GUAIDTokenResult, which compiles the information obtained from the login state into a JWT-encoded string that can be sent to the PlayFab game server for authentication.
Code Example
- Unity
- Unreal Engine
GUAIDTokenResult result = UnionAdapterAPI.GetAccountService().GetIDTokenResult()
GUA_NAMESPACE::GUAIDTokenResult GUAIDTokenResult;
bool Success = GUA_NAMESPACE::GUAAccountService::GetIDTokenResult(GUAIDTokenResult);