# Invalid JWT Token in node app

**URL:** <https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789>\
**Category:** API and Webhooks\
**Created:** [January 6, 2021, 12:31am UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789 "2021-01-06T00:31:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![YIAdvisors](https://avatars.discourse-cdn.com/v4/letter/y/a9adbd/32.png) [@YIAdvisors](https://devforum.zoom.us/u/YIAdvisors)\
**Post date:** [January 6, 2021, 12:31am UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789/1 "2021-01-06T00:31:56Z")

</div>

**Description**  
I’ve developed a simple node app to help us upload registration lists to our zoom meeting. The app is taking in the Bearer jwt token, but I’m still getting an “invalid token” error

**Error**

code: 124, message: ‘Invalid access token.’

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**

JWT

**Which Endpoint/s?**

[https://api.zoom.us/v2/meetings/${meetingId}/registrants](https://api.zoom.us/v2/meetings/%24%7BmeetingId%7D/registrants)

**How To Reproduce (If applicable)**

await axios({  
method: “post”,  
url: `https://api.zoom.us/v2/meetings/${meetingId}/registrants`,  
qs: {status: “active”},  
Authorization: bearer,  
Body: body

both the meetingId and the token are logging correctly.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [January 6, 2021, 5:36pm UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789/2 "2021-01-06T17:36:04Z")

</div>

Hi @YIAdvisors,

Thanks for reaching out about this—happy to take a closer look.

Can you please share the Meeting ID you’re passing? Additionally, have you confirmed that your token expiration date is valid?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![YIAdvisors](https://avatars.discourse-cdn.com/v4/letter/y/a9adbd/32.png) [@YIAdvisors](https://devforum.zoom.us/u/YIAdvisors)\
**Post date:** [January 6, 2021, 6:36pm UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789/3 "2021-01-06T18:36:59Z")

</div>

Hi Will!

the Meeting ID is 95662889845. I’ve tried re-generating the JWT, and the error message I get back has Authorization: ‘Bearer \< jwt \>’ where the jwt value is equal to the one I just generated.

Phelan

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [January 7, 2021, 5:58pm UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789/4 "2021-01-07T17:58:53Z")

</div>

Hi @YIAdvisors,

Thanks for sharing that—in taking a look at the meeting and your account, I don’t see any limitations that would be causing this. Can you please ensure you’re sending your request as follows?

**Request URL and Body** (Replace with your own Meeting ID)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/6/26993aebd75e80867fb8d9b523dd096077318e06.png)

**Authorization Header**  
“Bearer {yourJwtToken}”

Have you tried sending the request from Postman or our Sample Request tool in the documentation?

Let me know!  
Will

---

<div class="post-metadata">

**Author:** ![YIAdvisors](https://avatars.discourse-cdn.com/v4/letter/y/a9adbd/32.png) [@YIAdvisors](https://devforum.zoom.us/u/YIAdvisors)\
**Post date:** [January 14, 2021, 4:02am UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789/5 "2021-01-14T04:02:46Z")

</div>

Thanks a ton, still not sure what the issue is but the code sample from Postman worked great.

---

<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:** [January 14, 2021, 8:02pm UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789/6 "2021-01-14T20:02:49Z")

</div>

Happy to hear you got it working. Let us know if we can help further getting it to work in your environment.

Thanks,  
Tommy

---

<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:** [February 14, 2021, 6:02am UTC](https://devforum.zoom.us/t/invalid-jwt-token-in-node-app/39789/7 "2021-02-14T06:02:52Z")

</div>

Closed on February 14, 2021, 6:02am UTC

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