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

# PFAuthenticationReLoginWithCustomIDAsync

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

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

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

要重新登录的 PFEntityHandle。

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

已填充的请求对象。

**`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)
- [PFAuthenticationReLoginWithPSNAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithpsnasync.md)
- [PFAuthenticationReLoginWithAppleAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithappleasync.md)
- [PFAuthenticationReLoginWithFacebookAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithfacebookasync.md)
- [PFAuthenticationReLoginWithSteamAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithsteamasync.md)
