# Refresh Token Issue

**URL:** <https://devforum.zoom.us/t/refresh-token-issue/16732>\
**Category:** API and Webhooks\
**Created:** [May 8, 2020, 8:39am UTC](https://devforum.zoom.us/t/refresh-token-issue/16732 "2020-05-08T08:39:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry2491](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jerry2491/32/59148_2.png) [@jerry2491](https://devforum.zoom.us/u/jerry2491)\
**Post date:** [May 8, 2020, 8:39am UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/1 "2020-05-08T08:39:32Z")

</div>

Hello, I am using OAuth token to create the appointments using zoom api. But after 1 hour token becomes expired and when I try to generate new access and refresh token from my old refresh token then the new token is not working. It gives the following issue:-  
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://zoom.us/oauth/token` resulted in a `401 Unauthorized` response: {“reason”:“Invalid Token!”,“error”:“invalid\_request”}

I am working in PHP.

---

<div class="post-metadata">

**Author:** ![yogimonk](https://avatars.discourse-cdn.com/v4/letter/y/cab0a1/32.png) [@yogimonk](https://devforum.zoom.us/u/yogimonk)\
**Post date:** [May 9, 2020, 4:03pm UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/2 "2020-05-09T16:03:51Z")

</div>

Above error indicates that your refresh token is replaced with new one in Zoom account but you are trying to send the obsolete token… Make sure yo are storing the original refresh token value in DB and use it when generating the request.  
Try generating new access\_token and refresh\_token and then try the new refresh\_token value. It works !

---

<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:** [May 13, 2020, 5:54pm UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/3 "2020-05-13T17:54:22Z")

</div>

Hey @jerry2491,

Let me know if @yogimonk’s suggestions help.

Make sure to use the new access and refresh tokens each refresh.

> **[OAuth 2.0 - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing)**
>
> OAuth with Zoom
> 
> The Zoom API uses OAuth 2.0 to authenticate and authorize users to make requests. To setup access credentials and request scopes for yo...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jerry2491](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jerry2491/32/59148_2.png) [@jerry2491](https://devforum.zoom.us/u/jerry2491)\
**Post date:** [May 18, 2020, 10:02am UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/4 "2020-05-18T10:02:18Z")

</div>

Thank you. There was a issue in my update query. Now it has been resolved. Now it is working fine as mentioned in the document.

---

<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:** [May 21, 2020, 9:26pm UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/5 "2020-05-21T21:26:10Z")

</div>

Happy to hear you got it working! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![lucio](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@lucio](https://devforum.zoom.us/u/lucio)\
**Post date:** [June 25, 2020, 12:19am UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/6 "2020-06-25T00:19:43Z")

</div>

Hello Jerry2491, I have the same problem. What is the solution please?  
Thanks  
Lucio

---

<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:** [June 25, 2020, 8:52pm UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/7 "2020-06-25T20:52:20Z")

</div>

Hey @lucio,

Please start a new topic with steps to reproduce the issue so we can help! 🙂

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, 10:27pm UTC](https://devforum.zoom.us/t/refresh-token-issue/16732/8 "2020-08-21T22:27:19Z")

</div>


