Refresh Token Issue

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.

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 !

2 Likes

Hey @jerry2491,

Let me know if @yogimonk’s suggestions help.

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

Thanks,
Tommy

1 Like

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.

1 Like

Happy to hear you got it working! :slight_smile:

Thanks,
Tommy