# Refresh token doesn't work

**URL:** <https://devforum.zoom.us/t/refresh-token-doesnt-work/6963>\
**Category:** API and Webhooks\
**Created:** [December 5, 2019, 8:10pm UTC](https://devforum.zoom.us/t/refresh-token-doesnt-work/6963 "2019-12-05T20:10:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oleg](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oleg](https://devforum.zoom.us/u/oleg)\
**Post date:** [December 5, 2019, 8:10pm UTC](https://devforum.zoom.us/t/refresh-token-doesnt-work/6963/1 "2019-12-05T20:10:26Z")

</div>

Hi all!  
Refresh token doesn’t work  
First getting refresh token:

```
 Uri: https://zoom.us/oauth/token 

 Content: grant_type=refresh_token&refresh_token=eyJhbGciOiJIUzUxMiJ9.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiI0MUdyaVR6VVF4NlQ0dHpkWndSTDVBIiwiY29kZSI6IldFOWhpODJCQzdfSnUzU3FURGZRWkswdXpLRkxQWm41QSIsImlzcyI6InVybjp6b29tOmNvbm5lY3Q6Y2xpZW50aWQ6NDFHcmlUelVReDZUNHR6ZFp3Ukw1QSIsImF1dGhlbnRpY2F0aW9uSWQiOiJlNDUwNzUwZWI3N2NlN2UwZWRlMDliYzI5MDE3YTI0ZiIsImVudiI6W251bGxdLCJ1c2VySWQiOiJKdTNTcVREZlFaSzB1ektGTFBabjVBIiwiZ3JvdXBOdW1iZXIiOjAsImF1ZCI6Imh0dHBzOi8vb2F1dGguem9vbS51cyIsImFjY291bnRJZCI6Il9JQU5HWk5vUjBxUWtxS1FjYTdEMEEiLCJuYmYiOjE1NzU1NzYwNTUsImV4cCI6MjA0ODYxNjA1NSwidG9rZW5UeXBlIjoicmVmcmVzaF90b2tlbiIsImlhdCI6MTU3NTU3NjA1NSwianRpIjoiZTc2OGU2OGEtYzFhOS00MjdjLTljMTAtMTUxMjY5ZGI4MjUxIiwidG9sZXJhbmNlSWQiOjB9.xN59JTVuMh_li9jMBUl3bVpdOKyRipr0mhNT3TinhfO4lfFRYOuoksMz3PvTNF6jv9DW4BAWNUh-pRJrHUuQZA&redirect_uri=https%3A%2F%2Fmy.site%2Fportal%2FZoomOAuth%2FConfirmRegistration

```

- works  
1 min later :  
Uri: [https://zoom.us/oauth/token](https://zoom.us/oauth/token)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 5, 2019, 8:23pm UTC](https://devforum.zoom.us/t/refresh-token-doesnt-work/6963/2 "2019-12-05T20:23:02Z")

</div>

Hey @oleg,

Are you using the most recent refresh\_token each time?

In your second request 1 min later, you are using the exact same refresh\_token as in your first request. Each time you refresh, a new refresh token is returned and the prior one becomes invalid.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![oleg](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oleg](https://devforum.zoom.us/u/oleg)\
**Post date:** [December 5, 2019, 8:36pm UTC](https://devforum.zoom.us/t/refresh-token-doesnt-work/6963/3 "2019-12-05T20:36:07Z")

</div>

I see, can I provide you c# code to check my request?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 5, 2019, 9:21pm UTC](https://devforum.zoom.us/t/refresh-token-doesnt-work/6963/4 "2019-12-05T21:21:44Z")

</div>

Hey @oleg,

Sure, make sure you also have a database that updates the refresh and access tokens each time you refresh.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:07pm UTC](https://devforum.zoom.us/t/refresh-token-doesnt-work/6963/5 "2020-08-21T19:07:05Z")

</div>


