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

# PFAuthenticationServerLoginWithBattleNetAsync

> Battle.net ID 토큰으로 사용자를 로그인하고 타이틀 비밀 키로 서비스 요청을 인증하는 서버 API입니다. Windows에서 사용할 수 있습니다.

Battle.net ID 토큰으로 사용자를 로그인합니다.

## 구문

```cpp theme={null}
HRESULT PFAuthenticationServerLoginWithBattleNetAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const char* secretKey,  
    const PFAuthenticationServerLoginWithBattleNetRequest* request,  
    XAsyncBlock* async  
)  
```

### 매개 변수

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigCreateHandle 호출에서 반환된 PFServiceConfigHandle입니다.

**`secretKey`**   char\*<br />*In\_z*

서비스 요청을 인증하는 데 사용되는 타이틀 비밀 키입니다.

**`request`**   [PFAuthenticationServerLoginWithBattleNetRequest\*](/ko/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithbattlenetrequest)

값이 채워진 요청 객체입니다.

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

비동기 작업을 위한 XAsyncBlock입니다.

### 반환 값

형식: HRESULT

이 API 작업의 결과 코드입니다.

## 설명

이 API는 Windows에서 사용할 수 있습니다. ServerLinkBattleNetAccountAsync, ServerUnlinkBattleNetAccountAsync도 참조하세요. 비동기 작업이 완료되면 [PFAuthenticationServerLoginWithBattleNetGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresult)를 호출하여 결과를 가져오세요.

## 요구 사항

**헤더:** PFAuthentication.h

## 참고 항목

[PFAuthentication 멤버](/ko/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithBattleNetGetResultSize](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresultsize.md)
- [PFAuthenticationServerLoginWithBattleNetGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithbattlenetgetresult.md)
- [PFAuthenticationServerLoginWithBattleNetRequest](/ko/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithbattlenetrequest.md)
- [PFAuthenticationLoginWithBattleNetAsync](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithbattlenetasync.md)
- [PFAuthenticationReLoginWithBattleNetAsync](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithbattlenetasync.md)
