# Invalid auth token

**URL:** <https://devforum.zoom.us/t/invalid-auth-token/95452>\
**Category:** Authentication\
**Tags:** api\
**Created:** [September 20, 2023, 2:35pm UTC](https://devforum.zoom.us/t/invalid-auth-token/95452 "2023-09-20T14:35:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rithanya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rithanya/32/52223_2.png) [@Rithanya](https://devforum.zoom.us/u/Rithanya)\
**Post date:** [September 20, 2023, 2:35pm UTC](https://devforum.zoom.us/t/invalid-auth-token/95452/1 "2023-09-20T14:35:46Z")

</div>

We are having an issue while creating a meeting with Zoom.  
We get this error:  
Failed due to error: Fetching tokens failed with error: {"reason"=\>"Invalid Token!", "error"=\>"invalid\_grant"}"

When checking about this in devforum, came across this issue [Frequently receiving invalid\_request / token revocation from Zoom - #12 by will.zoom](https://devforum.zoom.us/t/frequently-receiving-invalid-request-token-revocation-from-zoom/44220/12), were it was suggested that Zoom will work to allow simultaneously use multiple access tokens, Is this done? I still see errors related to multiple sign ups

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 21, 2023, 3:01am UTC](https://devforum.zoom.us/t/invalid-auth-token/95452/2 "2023-09-21T03:01:01Z")

</div>

@Rithanya , do you have a code sample?

Do note that in the oauth 2.0 flow, the ?code in the redirect query string can only be used once.

---

<div class="post-metadata">

**Author:** ![Rithanya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rithanya/32/52223_2.png) [@Rithanya](https://devforum.zoom.us/u/Rithanya)\
**Post date:** [September 21, 2023, 11:17am UTC](https://devforum.zoom.us/t/invalid-auth-token/95452/3 "2023-09-21T11:17:09Z")

</div>

More info: This issue is raised when we try to refresh the access token with the existing refresh token. The refresh token is invalidated somehow.  
@chunsiong.zoom , can you share a mailid to share the code samples?  
Thanks!

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 21, 2023, 1:06pm UTC](https://devforum.zoom.us/t/invalid-auth-token/95452/4 "2023-09-21T13:06:11Z")

</div>

@Rithanya , what language are you using?

---

<div class="post-metadata">

**Author:** ![Rithanya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rithanya/32/52223_2.png) [@Rithanya](https://devforum.zoom.us/u/Rithanya)\
**Post date:** [September 21, 2023, 2:04pm UTC](https://devforum.zoom.us/t/invalid-auth-token/95452/5 "2023-09-21T14:04:03Z")

</div>

We are using Ruby @chunsiong.zoom

---

<div class="post-metadata">

**Author:** ![joshua.allen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua.allen/32/51545_2.png) [@joshua.allen](https://devforum.zoom.us/u/joshua.allen)\
**Post date:** [September 22, 2023, 2:20pm UTC](https://devforum.zoom.us/t/invalid-auth-token/95452/6 "2023-09-22T14:20:11Z")

</div>

Are you getting the new access token and refresh token the first time the refresh token is used or is the refresh token not working at all?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 25, 2023, 3:45am UTC](https://devforum.zoom.us/t/invalid-auth-token/95452/7 "2023-09-25T03:45:53Z")

</div>

@Rithanya I do not have a sample code in ruby, but I do have them in php, python and nodejs. Would any of these help? Let me know and I can share it here
