# Invalid Token! (invalid\_grant) when trying to renew a token on our app

**URL:** <https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392>\
**Category:** API and Webhooks\
**Created:** [January 29, 2022, 2:10pm UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392 "2022-01-29T14:10:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Delenta](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Delenta](https://devforum.zoom.us/u/Delenta)\
**Post date:** [January 29, 2022, 2:10pm UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/1 "2022-01-29T14:10:30Z")

</div>

Our app, Delenta (Client ID REDACTED), is having issues refreshing a customer’s token.

We have done many tests ourselves via our own personal keys and can confirm our code works, however, when we try and run this (via Postman):

[https://api.zoom.us//oauth/token?grant\_type=refresh\_token&refresh\_token={REDACTED}](https://api.zoom.us//oauth/token?grant_type=refresh_token&refresh_token=%7BREDACTED%7D)

We get:

{  
“reason”: “Invalid Token!”,  
“error”: “invalid\_grant”  
}

We have spoken to the customer many times and they have not used their account elsewhere on our app from what we can tell as such this refresh token should not be disabled.

We have checked this is the right and current refresh key, our own code works well for our own keys but not this one, for example:

[https://api.zoom.us//oauth/token?grant\_type=refresh\_token&refresh\_token={REDACTED}](https://api.zoom.us//oauth/token?grant_type=refresh_token&refresh_token=%7BREDACTED%7D)  
Works.

Any insight as to why this isn’t working?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 31, 2022, 6:31pm UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/2 "2022-01-31T18:31:16Z")

</div>

Hi @Delenta ,

Can you please submit a [support ticket](https://devsupport.zoom.us/hc/en-us) with this request?

Include:

- production client id
- user email(s)
- full request/responses
- anything else you think would be helpful for us to help debug!

Best,  
Gianni

---

<div class="post-metadata">

**Author:** ![Delenta](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@Delenta](https://devforum.zoom.us/u/Delenta)\
**Post date:** [January 31, 2022, 6:44pm UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/3 "2022-01-31T18:44:23Z")

</div>

Yeah, we already did, they told us to post here

---

<div class="post-metadata">

**Author:** ![basic](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/basic/32/31317_2.png) [@basic](https://devforum.zoom.us/u/basic)\
**Post date:** [March 3, 2022, 12:33am UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/4 "2022-03-03T00:33:47Z")

</div>

We’ve been seeing the same error on our production systems, intermittently. We have many customers creating thousands of Zoom meetings, but rarely (several times a month at our scale), when we fetch a new refresh token, we get this error with status code 400:

{  
“reason”: “Invalid Token!”,  
“error”: “invalid\_grant”  
}

This user reported a similar issue but the error was “invalid\_request” and the status code was 401: [ZOOM API refresh token not working {"reason":"Invalid Token!","error":"invalid\_request"}](https://devforum.zoom.us/t/zoom-api-refresh-token-not-working-reason-invalid-token-error-invalid-request/37089)

It seems similar to this error, which is basically a race condition: [Intermittent 400 error when refreshing token "Save Access token into Database error"](https://devforum.zoom.us/t/intermittent-400-error-when-refreshing-token-save-access-token-into-database-error/63110)

Can your engineers provide insight into the 400 invalid\_grant Invalid Token! error? It seems to be a bug in Zoom’s API.

I suspect that this is just another race condition (ie we are using the same refresh token to fetch a new refresh token twice, very quickly). But it would be nice to know what the error means for sure.

When this happens, the next request typically goes through without problem, so there is definitely nothing wrong with the credentials.

---

<div class="post-metadata">

**Author:** ![dev\_kd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dev_kd/32/33938_2.png) [@dev\_kd](https://devforum.zoom.us/u/dev_kd)\
**Post date:** [March 9, 2022, 7:17am UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/5 "2022-03-09T07:17:27Z")

</div>

Facing the same issue. The refresh token seems to work once - and then the subsequent requests throw this error.

```auto
"{\"reason\":\"Invalid Token!\",\"error\":\"invalid_grant\"}"

```

---

<div class="post-metadata">

**Author:** ![zac1](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zac1](https://devforum.zoom.us/u/zac1)\
**Post date:** [April 1, 2022, 12:58am UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/6 "2022-04-01T00:58:35Z")

</div>

I am experiencing the same issue, did you figure out a way around this?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 21, 2022, 9:10am UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/7 "2022-04-21T09:10:14Z")

</div>

@zac1 and @dev_kd ,

Can you share if you are still seeing this behavior on your end?

---

<div class="post-metadata">

**Author:** ![dev\_kd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dev_kd/32/33938_2.png) [@dev\_kd](https://devforum.zoom.us/u/dev_kd)\
**Post date:** [April 21, 2022, 2:15pm UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/8 "2022-04-21T14:15:47Z")

</div>

> > ![](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.s/45/24412_2.png "donte.S") | [donte.S](https://devforum.zoom.us/u/donte.s)  
> > April 21 |
> > 
> > - | - |
> 
> [@zac1](https://devforum.zoom.us/u/zac1) and [@dev\_kd](https://devforum.zoom.us/u/dev_kd) ,
> 
> Can you share if you are still seeing this behavior on your

Yes we are seeing that behavior in our application. The refresh token is not able to get us a new access token.  
Although after a while this is automatically resolved where the refresh token works as expected.

> 

Thanks,  
Kiran.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [April 22, 2022, 1:52pm UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/9 "2022-04-22T13:52:44Z")

</div>

@dev_kd,

Thank you for confirming. Can you submit a support ticket for this? This way we can take a closer look at our logs and diagnose what may be happening. You can submit a request with our support here: [https://support.zoom.us/hc/en-us/requests/new](https://support.zoom.us/hc/en-us/requests/new)

Be sure to include a link to this thread along with the following details:

**Complete Refresh Token API request** :

**Headers** :

**Error Message returned :**

**Time/Date of Request:**

**OAuth User Details** :

**AccountID** :

**Refresh Token** :

**Access Token** :

**ExpiresAt** :

Regrads,  
Donte

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 22, 2022, 11:53pm UTC](https://devforum.zoom.us/t/invalid-token-invalid-grant-when-trying-to-renew-a-token-on-our-app/63392/10 "2022-05-22T23:53:39Z")

</div>

Closed on May 22, 2022, 11:53pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
