# How long can token last at maximum? (New server to server OAuth app)

**URL:** <https://devforum.zoom.us/t/how-long-can-token-last-at-maximum-new-server-to-server-oauth-app/84493>\
**Category:** Authentication\
**Created:** [March 10, 2023, 3:29am UTC](https://devforum.zoom.us/t/how-long-can-token-last-at-maximum-new-server-to-server-oauth-app/84493 "2023-03-10T03:29:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_itguyonsite](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/john_itguyonsite/32/46329_2.png) [@john\_itguyonsite](https://devforum.zoom.us/u/john_itguyonsite)\
**Post date:** [March 10, 2023, 3:29am UTC](https://devforum.zoom.us/t/how-long-can-token-last-at-maximum-new-server-to-server-oauth-app/84493/1 "2023-03-10T03:29:06Z")

</div>

Hi all

I have read through this documentation  
[https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/)

Currrently, our Linux Server is using

- JWT app
- to access Zoom Recording
- each token usually last for 9 months or more
- that means we don’t need to regenerate any new token within 9 months

Question:

How long can a token last

- if we migrate to “server to server OAuth app”?
- how long can a token last for maximum?
- any documentation for generating a long lasting token under "server to server OAuth app

thanks  
John

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 3, 2023, 12:52pm UTC](https://devforum.zoom.us/t/how-long-can-token-last-at-maximum-new-server-to-server-oauth-app/84493/2 "2023-04-03T12:52:55Z")

</div>

Hi @john_itguyonsite  
Thanks for reaching out to the Zoom Developer Forum and welcome to our community!  
So, for our Server-to-Server Oauth time, the expiration time for tokens is 1 hour, and every time you generate a new token, the previous one gets invalidated.

Here is a link to our Docs:  
[https://developers.zoom.us/docs/internal-apps/#successful-response](https://developers.zoom.us/docs/internal-apps/#successful-response)

Hope this helps,  
Elisa
