# Empty payload in accessToken with iOS SDK

**URL:** <https://community.auth0.com/t/empty-payload-in-accesstoken-with-ios-sdk/94059>\
**Category:** Get Help\
**Tags:** rotating-refresh-tokens, sessions\
**Created:** [November 9, 2022, 12:18pm UTC](https://community.auth0.com/t/empty-payload-in-accesstoken-with-ios-sdk/94059 "2022-11-09T12:18:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kp1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kp1/32/36488_2.png) [@kp1](https://community.auth0.com/u/kp1)\
**Post date:** [November 9, 2022, 12:18pm UTC](https://community.auth0.com/t/empty-payload-in-accesstoken-with-ios-sdk/94059/1 "2022-11-09T12:18:25Z")

</div>

Hi  
I am getting access token with iOS SDK, but it has empty payload. From other threads I find out, that I need to set Audience parameter to fix that.

But I can’t found how to make it with iOS SDK.  
In Auth0.plist there is only Domain and ClientId params:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/a/1a4134de63eda731357796b03c5469df40706a27.jpeg)

---

<div class="post-metadata">

**Author:** ![kp1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kp1/32/36488_2.png) [@kp1](https://community.auth0.com/u/kp1)\
**Post date:** [November 9, 2022, 12:29pm UTC](https://community.auth0.com/t/empty-payload-in-accesstoken-with-ios-sdk/94059/2 "2022-11-09T12:29:11Z")

</div>

I found how to make it 🙂 Here is example:

```auto
Auth0
    .webAuth()
    .audience("YOUR_AUTH0_API_IDENTIFIER")

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 9, 2022, 2:27pm UTC](https://community.auth0.com/t/empty-payload-in-accesstoken-with-ios-sdk/94059/3 "2022-11-09T14:27:02Z")

</div>

Thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 23, 2022, 2:27pm UTC](https://community.auth0.com/t/empty-payload-in-accesstoken-with-ios-sdk/94059/4 "2022-11-23T14:27:21Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
