GetTokenIDResult [Player Network SDK Only]
[Player Network SDK Only] Get IdToken
from the result of QueryIDToken
.
Supported Platform
- 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.
Parameter | Type | Description |
---|---|---|
id_token | GUAIDTokenResult | Returned ID token could be sent to PlayFab server for authentication |
Return Value
The data structure is GUAIDTokenResult.
The returned GUAIDTokenResult
encode the information in the login state to JWT string, which can be sent to PlayFab game server for authentication.
Code Sample
- Unity
- Unreal Engine
GUAIDTokenResult result = UnionAdapterAPI.GetAccountService().GetIDTokenResult()
GUA_NAMESPACE::GUAIDTokenResult GUAIDTokenResult;
bool Success = GUA_NAMESPACE::GUAAccountService::GetIDTokenResult(GUAIDTokenResult);