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

# PFAuthenticationReLoginWithXboxAsync

> 當 EntityToken 已過期且 PlayFab SDK 無法重新整理時，透過 XBOX Live 登入以重新驗證現有的 PFEntityHandle。

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

## 語法

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

### 參數

**`entityHandle`**   PFEntityHandle

要重新登入的 PFEntityHandle。

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

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

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

## 需求

**標頭：** PFAuthentication.h

## 另請參閱

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


## Related topics

- [服務 C API 概觀 - PFAuthentication.h](/zh-TW/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationReLoginWithXUserAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithxuserasync.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)
