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

# PFAuthenticationReLoginWithNintendoServiceAccountAsync

> 当 EntityToken 已过期且 SDK 无法刷新它时，通过使用任天堂服务帐户登录来重新验证现有的 PFEntityHandle。

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

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

用于重新登录的 PFEntityHandle。

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

已填充的请求对象。

**`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)
- [PFAuthenticationLoginWithNintendoServiceAccountAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithnintendoserviceaccountasync.md)
- [PFAuthenticationLoginWithNintendoServiceAccountGetResult](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithnintendoserviceaccountgetresult.md)
- [PFAuthenticationLoginWithNintendoServiceAccountGetResultSize](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithnintendoserviceaccountgetresultsize.md)
- [PFAuthenticationReLoginWithGoogleAccountAsync](/zh-CN/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithgoogleaccountasync.md)
