> ## 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 nécessitant un utilisateur authentifié. Dans la mesure du possible, préférez PFAuthenticationLoginWithXUserAsync, qui gère de manière 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 nécessitant un utilisateur authentifié. Dans la mesure du possible, préférez PFAuthenticationLoginWithXUserAsync, qui gère de manière 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/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithxboxrequest)

Objet de requête renseigné.

**`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.

## Notes

Cette API est disponible sur toutes les plateformes. Une fois la tâche asynchrone terminée, appelez [PFAuthenticationLoginWithXboxGetResult](/fr/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/services/playfab/api-references/c/pfauthentication/pfauthentication_members)


## Related topics

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