# Cannot renew access token/refresh token for some users - 400 Invalid Token

**URL:** <https://devforum.zoom.us/t/cannot-renew-access-token-refresh-token-for-some-users-400-invalid-token/76400>\
**Category:** Authentication\
**Created:** [September 22, 2022, 2:56pm UTC](https://devforum.zoom.us/t/cannot-renew-access-token-refresh-token-for-some-users-400-invalid-token/76400 "2022-09-22T14:56:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![devind](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devind/32/37758_2.png) [@devind](https://devforum.zoom.us/u/devind)\
**Post date:** [September 22, 2022, 2:56pm UTC](https://devforum.zoom.us/t/cannot-renew-access-token-refresh-token-for-some-users-400-invalid-token/76400/1 "2022-09-22T14:56:44Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**

I have followed this documentation and verified our applications storage and update of both the access token and refresh token upon a refresh request.

- [OAuth with Zoom](https://marketplace.zoom.us/docs/guides/auth/oauth/#refreshing-an-access-token)

**Description**  
For some users we are seeing a 400 when requesting a new refresh and access token a bit after they have installed the application.

Here’s the behavior we’ve seen:

1. Successfully created access token / refresh\_token via app installation:
2. minutes later =\> successfully refreshed token
3. A couple hours later =\> Returned refresh token from step 2 user and attempted another refresh. Received Invalid Token Error.

The other posts/documentation on the forum suggest that this would be caused by not making the subsequent request with newest refresh token but I can verify in our test environment and for some production users that the approach in use works. Is there anything else this error could be caused by?

**Error**

```json
{
    “reason”: “Invalid Token!”,
    “error”: “invalid_grant”
}

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 26, 2022, 2:35pm UTC](https://devforum.zoom.us/t/cannot-renew-access-token-refresh-token-for-some-users-400-invalid-token/76400/2 "2022-09-26T14:35:58Z")

</div>

Hi @devind  
Hope you are doing great and thanks for reaching out to us!  
I wanted to reach out to you to check if you are still getting this error when trying to refresh access tokens?

---

<div class="post-metadata">

**Author:** ![devind](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/devind/32/37758_2.png) [@devind](https://devforum.zoom.us/u/devind)\
**Post date:** [September 27, 2022, 1:56pm UTC](https://devforum.zoom.us/t/cannot-renew-access-token-refresh-token-for-some-users-400-invalid-token/76400/3 "2022-09-27T13:56:51Z")

</div>

Hi @elisa.zoom - we finally found the case in which if a certain error occurred would lead to a non-refreshable token being stored. So issue resolved thanks!

---

<div class="post-metadata">

**Author:** ![townhalldev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/townhalldev/32/58299_2.png) [@townhalldev](https://devforum.zoom.us/u/townhalldev)\
**Post date:** [November 9, 2022, 9:36am UTC](https://devforum.zoom.us/t/cannot-renew-access-token-refresh-token-for-some-users-400-invalid-token/76400/4 "2022-11-09T09:36:32Z")

</div>

Hi @devind Sorry to bother you, do you mind sharing what you mean by `if a certain error occurred would lead to a non-refreshable token being stored`? We are facing similar issue and yet to resolve the problem

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 15, 2022, 8:09pm UTC](https://devforum.zoom.us/t/cannot-renew-access-token-refresh-token-for-some-users-400-invalid-token/76400/5 "2022-11-15T20:09:50Z")

</div>

HI @townhalldev  
Feel free to open up a new topic if you need our assistance 🙂  
Best,  
Elisa
