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

# PFAuthenticationLoginWithAppleRequest

> PFAuthenticationLoginWithAppleRequest data model.

PFAuthenticationLoginWithAppleRequest data model.

## Syntax

```cpp theme={null}
typedef struct PFAuthenticationLoginWithAppleRequest {  
    bool createAccount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    const char* identityToken;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    const char* playerSecret;  
} PFAuthenticationLoginWithAppleRequest;  
```

### Members

**`createAccount`**   bool

Automatically create a PlayFab account if one is not currently linked to this ID.

**`customTags`**   PFStringDictionaryEntry const\*<br />*may be nullptr*

(Optional) The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

**`customTagsCount`**   uint32\_t

Count of customTags

**`identityToken`**   const char\*<br />*is null-terminated*

The JSON Web token (JWT) returned by Apple after login. Represented as the identityToken field in the authorization credential payload. If you choose to ignore the expiration date for identity tokens, you will receive an NotAuthorized error if Apple rotates the signing key. In this case, users have to login to provide a fresh identity token.

**`infoRequestParameters`**   PFGetPlayerCombinedInfoRequestParams const\*<br />*may be nullptr*

(Optional) Flags for which pieces of info to return for the user.

**`playerSecret`**   const char\*<br />*is null-terminated*

(Optional) Player secret that is used to verify API request signatures (Enterprise Only).

## Requirements

**Header:** PFAuthenticationTypes.h

## See also

[PFAuthenticationTypes members](/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationLoginWithAppleAsync](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithappleasync.md)
- [PFAuthenticationReLoginWithAppleAsync](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithappleasync.md)
- [Services C API overview - PFAuthenticationTypes.h](/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members.md)
- [PFAuthenticationLoginWithAppleGetResult](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithapplegetresult.md)
- [PFAuthenticationLoginWithAppleGetResultSize](/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithapplegetresultsize.md)
