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

# PFAuthenticationLoginWithXboxAsync

> Conecta o usuário usando um token do XBOX Live, retornando um identificador de sessão que pode ser usado posteriormente para chamadas de API que exigem um usuário autenticado. Se possível, dê preferência a PFAuthenticationLoginWithXUserAsync, pois ele lida de forma mais integrada com a atualização automática de tokens.

Conecta o usuário usando um token do XBOX Live, retornando um identificador de sessão que pode ser usado posteriormente para chamadas de API que exigem um usuário autenticado. Se possível, dê preferência a PFAuthenticationLoginWithXUserAsync, pois ele lida de forma mais integrada com a atualização automática de tokens.

## Sintaxe

```cpp theme={null}
HRESULT PFAuthenticationLoginWithXboxAsync(  
    PFServiceConfigHandle serviceConfigHandle,  
    const PFAuthenticationLoginWithXboxRequest* request,  
    XAsyncBlock* async  
)  
```

### Parâmetros

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle retornado da chamada de PFServiceConfigCreateHandle.

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

Objeto de solicitação preenchido.

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

XAsyncBlock para a operação assíncrona.

### Valor retornado

Tipo: HRESULT

Código de resultado para esta operação de API.

## Comentários

Esta API está disponível em todas as plataformas. Quando a tarefa assíncrona for concluída, chame [PFAuthenticationLoginWithXboxGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxboxgetresult) 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

- [PFAuthenticationLoginWithXboxGetResultSize](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxboxgetresultsize.md)
- [PFAuthenticationLoginWithXboxGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxboxgetresult.md)
- [Visão geral da API C do Services - PFAuthentication.h](/pt-BR/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationReLoginWithXboxAsync](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithxboxasync.md)
- [PFAuthenticationServerLoginWithXboxAsync](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxasync.md)
