Description
I am using zoom api to create zoom meeting. And for the authorization I am using Bearer Token.
I am using Server-to-Server OAuth App api to fetch the bearer token. The api works fine. But I found that after some time (not know exactly when) the create meeting api started getting failed with error as: “{“code”:124,“message”:“Invalid access token.”}”.
Whenever my token expires, I am fetching the new token. But same problem occurring with new token also. That is initially I am able to create meeting but after sometimes I started getting Token Invalid error.
Yes, I am aware of 1 hour expiry. But I observed that I started getting issue after around 30 min of creation time.( Which means there are at least 30min remaining for the expiry).
Also, In case of expiry we gets “{“code”: 124,“message”: “Access token is expired.”}” error message.
So, I guess token expiry is not the case.
I also tried the same via postman app. There also I am getting same error after around 30min.
I guess yes, I am generating another token while using first. And tested same behaviour with postman also. There also older one became invalid after generating new. But things were not same when I was using JWT token.
I will fix this and update.
Hi I am facing the same issue, are you saying that once a new token is generated we are not able to use the old one even its not expired yet? If that’s the case how can we retrieve the current valid token on different API requests?
Hi @amonasalama, you are using OAuth flow (Online or Offline)?
If you are using Offline then you need to store access_token and refresh_token in side DB. Once access_token expired you need to regenerate new access and refresh token using old refresh token and then in the response you have also refresh and access tokens so keep updating both in db. Refresh token expiry will be in 15 years.