# Is there any option to increase token validity in Server to Server oauth app

**URL:** <https://devforum.zoom.us/t/is-there-any-option-to-increase-token-validity-in-server-to-server-oauth-app/75519>\
**Category:** Authentication\
**Created:** [September 7, 2022, 5:25am UTC](https://devforum.zoom.us/t/is-there-any-option-to-increase-token-validity-in-server-to-server-oauth-app/75519 "2022-09-07T05:25:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawanshreemedtech](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pawanshreemedtech/32/34351_2.png) [@pawanshreemedtech](https://devforum.zoom.us/u/pawanshreemedtech)\
**Post date:** [September 7, 2022, 5:25am UTC](https://devforum.zoom.us/t/is-there-any-option-to-increase-token-validity-in-server-to-server-oauth-app/75519/1 "2022-09-07T05:25:53Z")

</div>

\*[Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context.\*](https://zoom.us/oauth/token?grant_type=account_credentials&account_id=...)

**Description**  
We are creating a server for meetings. where many requests will be created to Zoom API within an hour.

Because there is only one token valid for a particular time and validity is 1 hour. what will be if one request (Request1) going to access Zoom API with the current token before that another request (Request2) created a new Token?

there will be an error for (Request1): “Access token is expired”.

The question is How to handle this concurrency ??

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [September 10, 2022, 4:59am UTC](https://devforum.zoom.us/t/is-there-any-option-to-increase-token-validity-in-server-to-server-oauth-app/75519/2 "2022-09-10T04:59:45Z")

</div>

Hi Rachit,  
I am interested to learn more about your use case.

Ideally I wouldn’t recommend creating tokens for every request, instead, you can have two jobs:  
Job 1. Handles access tokens: Creates / Updates Access Tokens (runs once every hour or 50 mins)  
Job 2. Makes API calls: You can append the access tokens from Job 1 and use them to make API calls in Job 2.

Let me know if this helps.
