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

# PFAuthenticationServerLoginWithCustomIDAsync

> 타이틀에서 생성한 사용자 지정 고유 식별자를 사용하여 사용자를 로그인하고, 이후 인증된 사용자가 필요한 API 호출에 사용할 수 있는 세션 식별자를 반환합니다.

타이틀에서 생성한 사용자 지정 고유 식별자를 사용하여 사용자를 로그인하고, 이후 인증된 사용자가 필요한 API 호출에 사용할 수 있는 세션 식별자를 반환합니다.

## 구문

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

### 매개 변수

**`serviceConfigHandle`**   PFServiceConfigHandle

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

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

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

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

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

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

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

### 반환 값

형식: HRESULT

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

## 설명

이 API는 Windows에서 사용할 수 있습니다. 개발자는 고객이 다른 고객이 이미 사용 중인 ID를 생성할 가능성이 극히 낮도록 보장하는 것이 좋습니다. 사용자가 사용자 지정 ID로 처음 로그인하고 CreateAccount가 true로 설정된 경우, 새 PlayFab 계정이 만들어지고 사용자 지정 ID에 연결됩니다. 이 경우 PlayFab 계정에는 이메일이나 사용자 이름이 연결되지 않습니다. 그렇지 않고 사용자 지정 ID에 연결된 PlayFab 계정이 없는 경우, 이를 나타내는 오류가 반환되므로 타이틀은 사용자에게 PlayFab 계정 생성을 안내할 수 있습니다. 비동기 작업이 완료되면 [PFAuthenticationServerLoginWithCustomIDGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidgetresult)를 호출하여 결과를 가져오세요.

## 요구 사항

**헤더:** PFAuthentication.h

## 참고 항목

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


## Related topics

- [PFAuthenticationServerLoginWithCustomIDGetResultSize](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidgetresultsize.md)
- [PFAuthenticationServerLoginWithCustomIDGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidgetresult.md)
- [PFAuthenticationServerLoginWithServerCustomIdAsync](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidasync.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResultSize](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresultsize.md)
