# JWT token Expiration Time

**URL:** <https://devforum.zoom.us/t/jwt-token-expiration-time/48964>\
**Category:** API and Webhooks\
**Created:** [April 27, 2021, 11:34am UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964 "2021-04-27T11:34:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajat\_pandey](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rajat\_pandey](https://devforum.zoom.us/u/rajat_pandey)\
**Post date:** [April 27, 2021, 11:34am UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964/1 "2021-04-27T11:34:39Z")

</div>

**Description**  
I have been recently started using JWT token for some automation and faced an issue where the JWT token time, even after customization, expired within the default 90 min timeline.

**Error**  
API key expired in 90 minutes when the expiration time was 180 minutes.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT App type

**Additional Details** - After updating the expiration time, if I expand the collapsible **View JWT Token** , the Expire in time is selected as default 90 minutes.

Thank you for help in advance and pardon the naivety in case if I am missing the basic nuance here.

Regards  
Rajat

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [April 27, 2021, 11:41am UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964/2 "2021-04-27T11:41:51Z")

</div>

Hi @rajat_pandey,

Welcome to the community!

Are you generating the JWT token through the Zoom interface, or on your own secure server?

Either way, please generate a new JWT with an expiry longer than 90 minutes and share a screenshot of the payload results from [https://jwt.io/](https://jwt.io/) - be sure to redact any secret information.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![rajat\_pandey](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rajat\_pandey](https://devforum.zoom.us/u/rajat_pandey)\
**Post date:** [April 27, 2021, 11:56am UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964/3 "2021-04-27T11:56:48Z")

</div>

Thanks for the prompt response @alexmayo

The payload details are as below:

{  
“typ”: “JWT”,  
“alg”: “HS256”  
}

{  
“aud”: null,  
“iss”: “VSX\_cvyxTg26063rnXX34w”,  
“exp”: 1619529533, - _Tue April 27 2021 18:48:53 GMT +5:30 IST_  
“iat”: 1619524133 -_Tue April 27 2021 17:18:53 GMT +5:30 IST_  
}

The issue I see here is every time I regenerate the token the default expiration time is set to 90 minutes.

Kindly let me know if these details are suffice.

Regards  
Rajat

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 28, 2021, 3:43pm UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964/4 "2021-04-28T15:43:31Z")

</div>

Hey @rajat_pandey,

Are you generating your token from the Zoom UI? If so, can you please make sure that even after you select “Other” or a time period longer than 90 minutes, that you’re copying the token below **after**? The token will update dynamically _after_ you select the expiration time, and you need to copy it at that time. Once you navigate away, the token will default back to 90 minutes.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![rajat\_pandey](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rajat\_pandey](https://devforum.zoom.us/u/rajat_pandey)\
**Post date:** [April 30, 2021, 10:08am UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964/5 "2021-04-30T10:08:38Z")

</div>

Thanks @will.zoom

I actually was getting confused with the immediate rollback to 90 minutes.  
Just checked that before leaving the screen, the generated token is valid for a week, as selected.

Thanks for the quick help, just out of curiosity, is there a specific reason to reverting it back to the default immediately or a default feature.

Regards  
Rajat

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 30, 2021, 8:01pm UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964/6 "2021-04-30T20:01:25Z")

</div>

Hey @rajat_pandey,

No problem, glad I could help clarify. The intention here is to have a default token with a short expiration, as a best practice.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 31, 2021, 6:02am UTC](https://devforum.zoom.us/t/jwt-token-expiration-time/48964/7 "2021-05-31T06:02:13Z")

</div>

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