> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFAuthenticationAuthenticateGameServerWithCustomIdAsync

> Crea un token de entidad game_server y devuelve una entidad game_server nueva o existente.

Crea un token de entidad game\_server y devuelve una entidad game\_server nueva o existente.

## Sintaxis

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

### Parámetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle que se usará para la autenticación.

**`request`**   [PFAuthenticationAuthenticateCustomIdRequest\*](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationauthenticatecustomidrequest.md)

Objeto de solicitud rellenado.

**`async`**   XAsyncBlock\*\
*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. Crea o devuelve un token de entidad game\_server. El autor de la llamada debe ser una entidad de título. Cuando se complete la tarea asincrónica, llame a PFAuthenticationAuthenticateGameServerWithCustomIdGetResultSize y [PFAuthenticationAuthenticateGameServerWithCustomIdGetResult](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationauthenticategameserverwithcustomidgetresult.md) para obtener el resultado.

## Requisitos

**Encabezado:** PFAuthentication.h

## Consulte también

[Miembros de PFAuthentication](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)


## Related topics

- [PFAuthenticationAuthenticateGameServerWithCustomIdGetResult](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationauthenticategameserverwithcustomidgetresult.md)
- [Información general de la API de C de Services - PFAuthentication.h](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [Authenticate Game Server With Custom Id](https://docs.xbox.com/api-reference/authentication/authenticate-game-server-with-custom-id.md)
- [PFAuthenticationServerLoginWithServerCustomIdAsync](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithservercustomidasync.md)
- [PFAuthenticationAuthenticateCustomIdRequest](https://docs.xbox.com/es/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationauthenticatecustomidrequest.md)
