> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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\*\
*may be nullptr*

（可选）实体 ID 和类型。

**`entityToken`**   const char\*\
*is null-terminated*

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

**`tokenExpiration`**   time\_t const\*\
*may be nullptr*

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

## 要求

**头文件：** PFAuthenticationTypes.h

## 另请参阅

[PFAuthenticationTypes 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members.md)


## Related topics

- [PFAuthenticationAuthenticateCustomIdResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationauthenticatecustomidresult.md)
- [PFAuthenticationServerLoginWithPSNGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithpsngetresult.md)
- [PFAuthenticationServerLoginWithCustomIDGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidgetresult.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithiosdeviceidgetresult.md)
- [PFAuthenticationServerLoginWithXboxGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxgetresult.md)
