# Refresh token request failing with 401

**URL:** <https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447>\
**Category:** API and Webhooks\
**Created:** [October 29, 2019, 6:21pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447 "2019-10-29T18:21:43Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [October 30, 2019, 7:38pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/21 "2019-10-30T19:38:06Z")

</div>

Hey @shane.zoom, can you share your app name and ID so I can look at the logs?

The App ID is in the url when on your App settings in the Zoom Ap Marketplace.

> [@shane.zoom](#):
>
> Is it entirely possible that it could be user account related?

Can you elaborate on this, I am not sure what you mean.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shane.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shane.zoom/32/925_2.png) [@shane.zoom](https://devforum.zoom.us/u/shane.zoom)\
**Post date:** [October 30, 2019, 7:41pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/22 "2019-10-30T19:41:56Z")

</div>

Hey, the app id is Removed

For the user account, what I meant was if the user needed to have certain privileges, maybe?

---

<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:** [October 30, 2019, 8:05pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/23 "2019-10-30T20:05:40Z")

</div>

Thanks @shane.zoom,

I am seeing a lot of refresh failures, including a [token being revoked](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#revoke-access-token).

Make sure you are using the most recent refresh token each time. It changes every time you refresh your access\_token.

If you would like me to help assist / debug further, please schedule a call:

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shane.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shane.zoom/32/925_2.png) [@shane.zoom](https://devforum.zoom.us/u/shane.zoom)\
**Post date:** [October 30, 2019, 8:18pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/24 "2019-10-30T20:18:19Z")

</div>

Hey, booked a meeting with you today.

---

<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:** [October 30, 2019, 8:21pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/25 "2019-10-30T20:21:29Z")

</div>

See you then!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shane.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shane.zoom/32/925_2.png) [@shane.zoom](https://devforum.zoom.us/u/shane.zoom)\
**Post date:** [October 30, 2019, 8:40pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/26 "2019-10-30T20:40:17Z")

</div>

Hey sorry had to reschedule as i thought it was at 4:30. Will talk with you tomorrow.

---

<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:** [October 30, 2019, 9:07pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/27 "2019-10-30T21:07:36Z")

</div>

See you tomorrow!

Thanks,  
Tommy

---

<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:** [November 5, 2019, 8:59pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/28 "2019-11-05T20:59:04Z")

</div>

Hey @shane.zoom,

We have identified the issue on our end related to the OAuth access\_token validation nbf time. This will be fixed in our December release. JIRA: ZOOM-118009

Thanks for your patience,  
Tommy

---

<div class="post-metadata">

**Author:** ![shane.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shane.zoom/32/925_2.png) [@shane.zoom](https://devforum.zoom.us/u/shane.zoom)\
**Post date:** [November 5, 2019, 10:08pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/29 "2019-11-05T22:08:23Z")

</div>

Cool. Great to hear. Thanks for the update.

---

<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:** [November 5, 2019, 10:09pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/30 "2019-11-05T22:09:26Z")

</div>

Happy to help! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![roy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/roy/32/1114_2.png) [@roy](https://devforum.zoom.us/u/roy)\
**Post date:** [November 12, 2019, 4:33pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/31 "2019-11-12T16:33:25Z")

</div>

Thanks Tommy for the fast support.

We’ve also made some additions on our end to ensure that the OAUTH tokens are never invalid.

---

<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:** [November 12, 2019, 5:07pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/32 "2019-11-12T17:07:40Z")

</div>

Happy to help @roy!

Nice job! Let me know if there is anything else I can help with!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![alon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alon/32/3471_2.png) [@alon](https://devforum.zoom.us/u/alon)\
**Post date:** [November 19, 2019, 1:38pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/33 "2019-11-19T13:38:52Z")

</div>

hey @tommy  
so for now OAuth token refreshing seems completely broken until the December release? Is there just a specific case which is broken or all OAuth refresh token is broken? I’m completely unable to refresh the token.

If this is indeed the case, any chance to push this fix as a hotfix ?

---

<div class="post-metadata">

**Author:** ![alon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alon/32/3471_2.png) [@alon](https://devforum.zoom.us/u/alon)\
**Post date:** [November 19, 2019, 1:40pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/34 "2019-11-19T13:40:21Z")

</div>

is there any way to track ZOOM-118009 ?

---

<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:** [November 19, 2019, 5:23pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/35 "2019-11-19T17:23:54Z")

</div>

Hey @alon, thanks for posting and using Zoom.

The refresh token flow is not completely broken, in a few cases the refresh timing is off.

What errors are you getting, I can help you get it working.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![alon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alon/32/3471_2.png) [@alon](https://devforum.zoom.us/u/alon)\
**Post date:** [November 19, 2019, 5:40pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/36 "2019-11-19T17:40:52Z")

</div>

i’m getting `{"reason":"Invalid Token!","error":"invalid_request"}`

---

<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:** [November 19, 2019, 5:57pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/37 "2019-11-19T17:57:56Z")

</div>

Hey @alon,

Can you please provide the url, params, and headers you are sending.

Also when refreshing an access\_token, a new refresh\_token is returned and must always be stored updated each time you refresh.

> **[OAuth with Zoom - OAuth - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#refresh-access-token)**
>
> OAuth with Zoom
> 
> 
> 
> Below are examples of how to send requests for Access Tokens and handle responses for OAuth app authentication and authorization with...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![alon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alon/32/3471_2.png) [@alon](https://devforum.zoom.us/u/alon)\
**Post date:** [November 19, 2019, 6:30pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/38 "2019-11-19T18:30:54Z")

</div>

thank you @tommy I was missing refreshing the refresh\_token as well!

---

<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:** [November 19, 2019, 7:39pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/39 "2019-11-19T19:39:51Z")

</div>

Happy to help! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nathan.arora](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nathan.arora](https://devforum.zoom.us/u/nathan.arora)\
**Post date:** [November 22, 2019, 10:39pm UTC](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447/40 "2019-11-22T22:39:47Z")

</div>

Hi @tommy

I too am getting a 401 Unauthorized error when I try to refresh.

App Name: YuJa Enterprise Video Platform

App ID: ARSeJ\_A3QkS5svlcjjPQZQ

POST:  
URL: [https://zoom.us/oauth/token](https://zoom.us/oauth/token)  
Params: grant\_type=refresh\_token&refresh\_token="+ settings.getZoomRefreshToken()

Header:  
Authorization: Basic base64{clientID:clientsecret}  
(“Content-Type”, “application/x-www-form-urlencoded”)

Additional Context:  
The new Refresh token is being stored and used every time

Please let me know if you see anything wrong and if there’s any way you can help

> **Summary**
>
> This text will be hidden

[Previous page](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447.md?page=1)

[Next page](https://devforum.zoom.us/t/refresh-token-request-failing-with-401/6447.md?page=3)
