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

# PFAuthenticationLoginWithAppleAsync

> Signs in the user with a Sign in with Apple identity token.

Signs in the user with a Sign in with Apple identity token.

## Syntax

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

### Parameters

**`serviceConfigHandle`**   PFServiceConfigHandle

PFServiceConfigHandle returned from PFServiceConfigCreateHandle call.

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

Populated request object.

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

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on iOS and macOS. See also ClientLinkAppleAsync, ClientUnlinkAppleAsync. When the asynchronous task is complete, call [PFAuthenticationLoginWithAppleGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithapplegetresult) to get the result.

## Requirements

**Header:** PFAuthentication.h

## See also

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


## Related topics

- [PFAuthenticationLoginWithAppleGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithapplegetresult.md)
- [PFAuthenticationLoginWithAppleGetResultSize](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithapplegetresultsize.md)
- [Quickstart iOS](/services/playfab/sdks/c/quickstart-ios.md)
- [Quickstart macOS](/services/playfab/sdks/c/quickstart-macos.md)
- [Services C API overview - PFAuthentication.h](/services/playfab/api-references/c/pfauthentication/pfauthentication_members.md)
