# Token expiration for private cloud tenant not working

**URL:** <https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912>\
**Category:** Get Help\
**Created:** [May 17, 2021, 10:34am UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912 "2021-05-17T10:34:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiran.ms](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kiran.ms/32/28442_2.png) [@kiran.ms](https://community.auth0.com/u/kiran.ms)\
**Post date:** [May 17, 2021, 10:34am UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912/1 "2021-05-17T10:34:33Z")

</div>

Hi,  
We have a private cloud tenant. I tried to change the “Token Expiration” (expiry time of access token) in the page [https://manage.pfizer.auth0.com/dashboard/pi/consumer-groassist-dev/apis/6089905bebd5a72514fdfc43/settings](https://manage.pfizer.auth0.com/dashboard/pi/consumer-groassist-dev/apis/6089905bebd5a72514fdfc43/settings). I changed it to 3600. But it is not reflecting. If I invoke the “/oauth/token”, I get back the old value “86400”.

But I tried the same in a public cloud tenant. I changed the “Token Expiry” to 3600 at [https://manage.auth0.com/dashboard/us/kiran-test-social-login/apis/6077f3009f6100004498b074/settings](https://manage.auth0.com/dashboard/us/kiran-test-social-login/apis/6077f3009f6100004498b074/settings). It works properly there.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [May 17, 2021, 2:31pm UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912/2 "2021-05-17T14:31:55Z")

</div>

Hi @kiran.ms

Make sure you are requesting the right audience.  
If all else fails, file a support ticket.

John

---

<div class="post-metadata">

**Author:** ![kiran.ms](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kiran.ms/32/28442_2.png) [@kiran.ms](https://community.auth0.com/u/kiran.ms)\
**Post date:** [May 18, 2021, 10:09am UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912/3 "2021-05-18T10:09:39Z")

</div>

Thanks @john.gateley , I will check whether we are using right audience when making the API call or not.

---

<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:** [May 18, 2021, 10:31am UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912/4 "2021-05-18T10:31:43Z")

</div>

Let us know if you have any other questions down the road!

---

<div class="post-metadata">

**Author:** ![kiran.ms](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kiran.ms/32/28442_2.png) [@kiran.ms](https://community.auth0.com/u/kiran.ms)\
**Post date:** [May 18, 2021, 10:43am UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912/5 "2021-05-18T10:43:56Z")

</div>

Thanks. After passing proper “audience” while invoking the API resolved the issue.  
Thank you.

---

<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:** [May 18, 2021, 10:50am UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912/6 "2021-05-18T10:50:49Z")

</div>

Perfect! Glad it’s working now!

---

<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:** [May 27, 2021, 11:57am UTC](https://community.auth0.com/t/token-expiration-for-private-cloud-tenant-not-working/62912/7 "2021-05-27T11:57:33Z")

</div>


