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

> Inicia la sesión de un cliente de juego de forma segura desde un back-end de servidor externo mediante un identificador personalizado para ese jugador. El identificador personalizado de servidor y el de cliente son mutuamente excluyentes.

Inicia la sesión de un cliente de juego de forma segura desde un back-end de servidor externo mediante un identificador personalizado para ese jugador. El identificador personalizado de servidor (Server Custom ID) y el identificador personalizado de cliente (Client Custom ID) son mutuamente excluyentes y no se pueden usar para recuperar la misma cuenta de jugador.

## Sintaxis

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

### Parámetros

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle devuelto por la llamada a PFServiceConfigCreateHandle.

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

Clave secreta del título usada para autenticar la solicitud de servicio.

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

Objeto de solicitud rellenado.

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

XAsyncBlock para la operación asincrónica.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Comentarios

Esta API está disponible en Win32, Linux y macOS. Cuando se complete la tarea asincrónica, llame a [PFAuthenticationServerLoginWithServerCustomIdGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult) para obtener el resultado.

## Requisitos

**Encabezado:** PFAuthentication.h

## Consulte también

[Miembros de PFAuthentication](/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationServerLoginWithServerCustomIdGetResult](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresult.md)
- [PFAuthenticationServerLoginWithServerCustomIdGetResultSize](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidgetresultsize.md)
- [Información general de la API de C de Services - PFAuthentication.h](/es/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationLoginWithServerCustomIdRequest](/es/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithservercustomidrequest.md)
- [PFAuthenticationServerLoginWithXboxIdAsync](/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxidasync.md)
