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

# 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\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithxuserrequest.md)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*\
*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

XAsyncGetStatus を呼び出して操作の結果を取得します。成功した場合、PFEntityHandle にキャッシュされた EntityToken がその場で更新されます。

## 要件

**ヘッダー:** PFAuthentication.h

## 関連項目

[PFAuthentication のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)


## Related topics

- [イベントパイプラインチュートリアル](https://docs.xbox.com/ja-jp/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [Services C API overview - PFAuthentication.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationReLoginWithPSNAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithpsnasync.md)
- [PFAuthenticationReLoginWithAppleAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithappleasync.md)
- [PFAuthenticationReLoginWithSteamAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithsteamasync.md)
