# General App - Invalid access token / Invalid Token!

**URL:** <https://devforum.zoom.us/t/general-app-invalid-access-token-invalid-token/105607>\
**Category:** API and Webhooks\
**Created:** [March 12, 2024, 11:36pm UTC](https://devforum.zoom.us/t/general-app-invalid-access-token-invalid-token/105607 "2024-03-12T23:36:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoomccpsentinel](https://avatars.discourse-cdn.com/v4/letter/z/958977/32.png) [@zoomccpsentinel](https://devforum.zoom.us/u/zoomccpsentinel)\
**Post date:** [March 12, 2024, 11:36pm UTC](https://devforum.zoom.us/t/general-app-invalid-access-token-invalid-token/105607/1 "2024-03-12T23:36:09Z")

</div>

Previous access token / refresh token stops working after requesting a new access token

Using a general app we can get a valid access token through postman with authorization code. However, if we use the same application to get a new access token, the first access token stops working, even though the expiration time has not passed. The same goes to the refresh token. The refresh token from a previous call won’t work, if we get a new access token.

If we try to use the access token, after a new one for the same application was created we get this error:  
{  
“code”: 124,  
“message”: “Invalid access token.”  
}

If we try to use the refresh token, after a new access token was created we get this error:  
{  
“reason”: “Invalid Token!”,  
“error”: “invalid\_grant”  
}

**How To Reproduce**  
1- Get an access token with authorization code and access Get [https://api.zoom.us/v2/report/activities](https://api.zoom.us/v2/report/activities) (for example).  
2- Get a new access token and access another API (for example).  
3- Try accessing the same API in step 1 with the same access token you used in step 1.

\_\_\_\_\_\_\_\_\_\_\_\_\_ same with refresh token\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
1- Get access token, use refresh token to get a new access token.  
2- Get a new access token  
3- Try to use the refresh token you generated in 1. It won’t work.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 13, 2024, 2:45am UTC](https://devforum.zoom.us/t/general-app-invalid-access-token-invalid-token/105607/2 "2024-03-13T02:45:13Z")

</div>

Hi @zoomccpsentinel ,

> [@zoomccpsentinel](#):
>
> Using a general app we can get a valid access token through postman with authorization code. However, if we use the same application to get a new access token, the first access token stops working, even though the expiration time has not passed. The same goes to the refresh token. The refresh token from a previous call won’t work, if we get a new access token.

The behavior you’re observing is expected. Generating a new token invalidates the previous one, even if it is before the token expiry time.

---

<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:** [March 14, 2024, 2:46am UTC](https://devforum.zoom.us/t/general-app-invalid-access-token-invalid-token/105607/4 "2024-03-14T02:46:33Z")

</div>

Closed on March 14, 2024, 2:46am UTC

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