> ## 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 資料模型。

PFAuthenticationLoginWithAppleRequest 資料模型。

## 語法

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

### 成員

**`createAccount`**   bool

如果目前沒有 PlayFab 帳戶連結至此識別碼，則自動建立一個。

**`customTags`**   PFStringDictionaryEntry const\*\
*may be nullptr*

（選擇性）與要求相關聯的選擇性自訂標籤（例如組建編號、外部追蹤識別碼等）。

**`customTagsCount`**   uint32\_t

customTags 的計數

**`identityToken`**   const char\*\
*is null-terminated*

Apple 在登入後傳回的 JSON Web 權杖 (JWT)。在授權認證承載中以 identityToken 欄位表示。如果您選擇忽略身分識別權杖的到期日，當 Apple 輪替簽署金鑰時，您將會收到 NotAuthorized 錯誤。在此情況下，使用者必須登入以提供新的身分識別權杖。

**`infoRequestParameters`**   PFGetPlayerCombinedInfoRequestParams const\*\
*may be nullptr*

（選擇性）指定要為使用者傳回哪些資訊的旗標。

**`playerSecret`**   const char\*\
*is null-terminated*

（選擇性）用來驗證 API 要求簽章的玩家密碼。

## 需求

**標頭：** PFAuthenticationTypes.h

## 另請參閱

[PFAuthenticationTypes 成員](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationLoginWithAppleAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithappleasync.md)
- [PFAuthenticationReLoginWithAppleAsync](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithappleasync.md)
- [服務 C API 概觀 - PFAuthenticationTypes.h](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members.md)
- [PFAuthenticationLoginWithAppleGetResult](/zh-TW/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithapplegetresult.md)
- [PFAuthenticationServerLoginWithIOSDeviceIDRequest](/zh-TW/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationserverloginwithiosdeviceidrequest.md)
