# An error occurred while refreshing the meeting Oauth token. I can't refresh the token

**URL:** <https://devforum.zoom.us/t/an-error-occurred-while-refreshing-the-meeting-oauth-token-i-cant-refresh-the-token/93349>\
**Category:** Meetings\
**Tags:** api\
**Created:** [August 14, 2023, 10:37am UTC](https://devforum.zoom.us/t/an-error-occurred-while-refreshing-the-meeting-oauth-token-i-cant-refresh-the-token/93349 "2023-08-14T10:37:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoomapi2](https://avatars.discourse-cdn.com/v4/letter/z/8baadc/32.png) [@zoomapi2](https://devforum.zoom.us/u/zoomapi2)\
**Post date:** [August 14, 2023, 10:37am UTC](https://devforum.zoom.us/t/an-error-occurred-while-refreshing-the-meeting-oauth-token-i-cant-refresh-the-token/93349/1 "2023-08-14T10:37:28Z")

</div>

I am switching from JWT mode to Oauth authentication mode. I try to get the Token in Oauth, and I successfully use this Token to get the conference information.  
But when I tried to refresh the token to increase its use time, I kept getting an error, returning yes 400

\*\*Error? \*\*  
I passed the data strictly in accordance with the format, but I was unable to refresh the Token successfully. I have been making 400 errors. I guarantee that the data I filled in was accurate and correct

**How To Reproduce**  
post [https://zoom.us/oauth/token](https://zoom.us/oauth/token)  
Basic OGs4WFgzdXhUWHFsbzhCallDYnhTdzpXNk9wVWNYaVZ5NkpoN1dMc2UwZWU3b3V4eGFRNEdsMQ==  
Content-Type application/x-www-form-urlencoded  
grant\_type refresh\_token  
refresh\_token:  
eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6IjNmMGI2ZmY0LTExY2QtNDQ2Mi1iNjNmLWExY2NiOWQ0YTRmMyJ9.eyJ2ZXI iOjksImF1aWQiOiI5ZDliNGU0NWEwNmJjNDViYTBmYjEyMTg2NGVjM2U0OSIsImNvZGUiOiJFZGJBaE9wM2cxRC04OC1QRllBUUJTTXltTTZLN1VadkEiLCJ pc3MiOiJ6bTpjaWQ6OGs4WFgzdXhUWHFsbzhCallDYnhTdyIsImdubyI6MCwidHlwZSI6MCwidGlkIjowLCJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXM iLCJ1aWQiOiI2OU1wZGRPdVI5VzhNUUktZVFaRHp3IiwibmJm  
IjoxNjkyMDA4MTg3LCJleHAiOjE2OTIwMTE3ODcsImlhdCI6MTY5MjAwODE4NywiYWlkIjo IWVYyOTFkRlVRSjJ4eWdZSTlJTl96QSJ9. 92 fo6bivbmsywqijfxoujhfsj1wu5r6r5xfqg1mb9d3pcbay6iy2svvm8lj4xjweqnzjozpvusldsc9ma8zbbw

---

<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:** [August 15, 2023, 7:59pm UTC](https://devforum.zoom.us/t/an-error-occurred-while-refreshing-the-meeting-oauth-token-i-cant-refresh-the-token/93349/2 "2023-08-15T19:59:33Z")

</div>

Hi @zoomapi2  
Thanks for reaching out to us! I am happy to help here!  
Can you please confirm if the refresh token has not been used ?  
Everytime you generate a new token using the refresh token, a new pair of tokens will get generated, so you will have to use the latest refresh token in your next request

---

<div class="post-metadata">

**Author:** ![zoomapi2](https://avatars.discourse-cdn.com/v4/letter/z/8baadc/32.png) [@zoomapi2](https://devforum.zoom.us/u/zoomapi2)\
**Post date:** [August 16, 2023, 1:24am UTC](https://devforum.zoom.us/t/an-error-occurred-while-refreshing-the-meeting-oauth-token-i-cant-refresh-the-token/93349/3 "2023-08-16T01:24:04Z")

</div>

I would like to ask you, the best way to achieve is, the following is my example  
The first time I call once, return identity token A and refresh token A  
When identity token A is about to expire, I use refresh token A to call refresh and get a new set of tokens  
Identity token B and refresh token B, which I will then use at the next scheduled meeting  
Identity token B authenticates once.  
I then instruct identity token B, and when the hour is about to expire, I use refresh token B  
Make the next new request. obtained  
Identity token C and refresh token C

In the loop above, we keep calling,  
If from the design logic of my program, to ensure that the identity token does not expire, I need to request at least 24 times a day, I would like to know.  
Does this scheme meet the standards for Oauth authentication?  
In addition, I would like to ask if it is feasible to use this way.

---

<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:** [August 17, 2023, 6:32pm UTC](https://devforum.zoom.us/t/an-error-occurred-while-refreshing-the-meeting-oauth-token-i-cant-refresh-the-token/93349/4 "2023-08-17T18:32:46Z")

</div>

Hi @zoomapi2  
your example is correct.  
You will have to generate a new token every time it expires.

Here is a link to our Docs:

> **[OAuth for user authorized apps](https://developers.zoom.us/docs/integrations/oauth/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.
