General App - Invalid access token / Invalid Token!

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 (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.

Hi @zoomccpsentinel ,

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

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