Invalid grant while refreshing the access token

Hello,

When we are trying to update access tokens of the users of our Zoom app using their refresh token, we are getting this error from Zoom’s OAuth endpoint: “{‘reason’: ‘Invalid Token!’, ‘error’: ‘invalid_grant’}”

A few things to note: We are aware that a refresh token can be used only once and the latest refresh token must always be used for the next refresh request. However, we are getting the error even when are making the request for the first time.

Hi @ftl-devs
Thanks for reaching out to the Zoom Developer Forum and welcome to our community!
Here is a link to our Docs on how to refresh tokens:

Now, could you please share with me the request URL that you are sending when refreshing the access_token ?

Best,
Elisa

Hi Elisa,

This is the url we’re sending the request to: https://zoom.us/oauth/token

The payload of our request is { “grant_type”: “refresh_token”, “refresh_token”: actual_refresh_token_here }.

Please let us know if we are doing anything wrong.

Thank you

Hi @ftl-devs
Could you please make sure that you are passing the grant_type and refresh_token as query params?
Your request URL should look something like this:
https://zoom.us/oauth/token?grant_type=refresh_token&refresh_token={yourRefreshToken}

Let me know if this helps
Elisa

Thank you very much! That helped.

1 Like