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

> Connecte l'utilisateur à l'aide d'un jeton XBOX Live et retourne un identificateur de session qui peut ensuite être utilisé pour les appels d'API qui nécessitent un utilisateur authentifié. Si possible, privilégiez PFAuthenticationLoginWithXUserAsync, car elle gère de façon plus transparente l'actualisation automatique des jetons.

Connecte l'utilisateur à l'aide d'un jeton XBOX Live et retourne un identificateur de session qui peut ensuite être utilisé pour les appels d'API qui nécessitent un utilisateur authentifié. Si possible, privilégiez PFAuthenticationLoginWithXUserAsync, car elle gère de façon plus transparente l'actualisation automatique des jetons.

## Syntaxe

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

### Paramètres

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle retourné par l'appel à PFServiceConfigCreateHandle.

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

Objet de requête rempli.

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

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Remarques

Cette API est disponible sur toutes les plateformes. Une fois la tâche asynchrone terminée, appelez [PFAuthenticationLoginWithXboxGetResult](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxboxgetresult) pour obtenir le résultat.

## Configuration requise

**En-tête :** PFAuthentication.h

## Voir aussi

[Membres de PFAuthentication](/fr-CA/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

- [PFAuthenticationLoginWithXboxGetResultSize](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxboxgetresultsize.md)
- [PFAuthenticationLoginWithXboxGetResult](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxboxgetresult.md)
- [Vue d'ensemble de l'API C Services - PFAuthentication.h](/fr-CA/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
- [PFAuthenticationReLoginWithXboxAsync](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithxboxasync.md)
- [PFAuthenticationServerLoginWithXboxAsync](/fr-CA/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationserverloginwithxboxasync.md)
