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

# PFAuthenticationServerLoginWithServerCustomIdAsync

> Conecta com segurança um cliente de jogo a partir de um back-end de servidor externo usando um identificador personalizado para esse jogador. Server Custom ID e Client Custom ID são mutuamente.

Conecta com segurança um cliente de jogo a partir de um back-end de servidor externo usando um identificador personalizado para esse jogador. Server Custom ID e Client Custom ID são mutuamente exclusivos e não podem ser usados para recuperar a mesma conta de jogador.

## Sintaxe

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

### Parâmetros

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle retornado pela chamada PFServiceConfigCreateHandle.

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

Chave secreta do título usada para autenticar a solicitação de serviço.

**`request`**   [PFAuthenticationLoginWithServerCustomIdRequest\*](/pt-BR/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithservercustomidrequest)

Objeto de solicitação preenchido.

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

XAsyncBlock para a operação assíncrona.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Esta API está disponível no Win32, Linux e macOS. Quando a tarefa assíncrona for concluída, chame [PFAuthenticationServerLoginWithServerCustomIdGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult) para obter o resultado.

## Requisitos

**Cabeçalho:** PFAuthentication.h

## Confira também

[Membros de PFAuthentication](/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithServerCustomIdGetResultSize](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresultsize.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult.md)
- [Visão geral da API C do Services - PFAuthentication.h](/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationServerLoginWithCustomIDAsync](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithcustomidasync.md)
- [Login With Server Custom Id](/api-reference/authentication/login-with-server-custom-id.md)
