> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAuthenticationEntityTokenResponse

> PFAuthenticationEntityTokenResponse 数据模型。

PFAuthenticationEntityTokenResponse 数据模型。

## 语法

```cpp theme={null}
typedef struct PFAuthenticationEntityTokenResponse {  
    PFEntityKey const* entity;  
    const char* entityToken;  
    time_t const* tokenExpiration;  
} PFAuthenticationEntityTokenResponse;  
```

### 成员

**`entity`**   PFEntityKey const\*<br />*may be nullptr*

（可选）实体 ID 和类型。

**`entityToken`**   const char\*<br />*is null-terminated*

（可选）用于为所有基于实体的 API 调用设置 X-EntityToken 的令牌。

**`tokenExpiration`**   time\_t const\*<br />*may be nullptr*

（可选）如果是过期令牌，则为该令牌将过期的时间，采用 UTC 时间。

## 要求

**头文件：** PFAuthenticationTypes.h

## 另请参阅

[PFAuthenticationTypes 成员](/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationAuthenticateCustomIdResult](/zh-CN/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationauthenticatecustomidresult.md)
- [PFAuthenticationServerLoginWithXboxGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxgetresult.md)
- [PFAuthenticationServerLoginWithSteamIdGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithsteamidgetresult.md)
- [PFAuthenticationServerLoginWithXboxIdGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxidgetresult.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult.md)
