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

# PFAuthenticationReLoginWithXUserAsync

> 使用 XUserHandle 重新驗證現有的 PFEntityHandle。用於處理 EntityToken 已過期且 PlayFab SDK 無法重新整理的情況。

使用 XUserHandle 重新驗證現有的 PFEntityHandle。用於處理 EntityToken 已過期且 PlayFab SDK 無法重新整理的情況。

## 語法

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

### 參數

**`entityHandle`**   PFEntityHandle

要重新登入的 PFEntityHandle。

**`request`**   [PFAuthenticationLoginWithXUserRequest\*](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithxuserrequest)

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

呼叫 XAsyncGetStatus 以取得作業的結果。如果成功，PFEntityHandle 快取的 EntityToken 將會就地更新。

## 需求

**標頭：** PFAuthentication\_Xbox.h

## 另請參閱

[PFAuthentication\_Xbox 成員](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [事件管線教學課程](/zh-TW/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [服務 C API 概觀 - PFAuthentication.h](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationReLoginWithPSNAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithpsnasync.md)
- [PFAuthenticationReLoginWithAppleAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithappleasync.md)
- [PFAuthenticationReLoginWithSteamAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithsteamasync.md)
