> ## 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.

# PFAuthenticationReLoginWithAppleAsync

> 在 EntityToken 已过期且 SDK 无法刷新它时，通过使用 Apple 登录来重新验证现有的 PFEntityHandle。

重新验证现有的 PFEntityHandle。用于解决 EntityToken 已过期且 PlayFab SDK 无法刷新它的情况。

## 语法

```cpp theme={null}
HRESULT PFAuthenticationReLoginWithAppleAsync(  
    PFEntityHandle entityHandle,  
    const PFAuthenticationLoginWithAppleRequest* request,  
    XAsyncBlock* async  
)  
```

### 参数

**`entityHandle`**   PFEntityHandle

要重新登录的 PFEntityHandle。

**`request`**   [PFAuthenticationLoginWithAppleRequest\*](/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithapplerequest)

已填充的请求对象。

**`async`**   XAsyncBlock\*<br />*Inout*

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

调用 XAsyncGetStatus 获取该操作的状态。如果成功，将就地更新 PFEntityHandle 的缓存 EntityToken。

## 要求

**头文件：** PFAuthentication.h

## 另请参阅

[PFAuthentication 成员](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [服务 C API 概览 - PFAuthentication.h](/zh-CN/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationReLoginWithGameCenterAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithgamecenterasync.md)
- [PFAuthenticationLoginWithAppleAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithappleasync.md)
- [PFAuthenticationReLoginWithPSNAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithpsnasync.md)
- [PFAuthenticationReLoginWithFacebookAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithfacebookasync.md)
