# Invalid Signature Error with Zoom Meeting SDK (3.6.1)

**URL:** <https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381>\
**Category:** Meeting SDK\
**Created:** [May 21, 2024, 10:50am UTC](https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381 "2024-05-21T10:50:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamzasuleman](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@hamzasuleman](https://devforum.zoom.us/u/hamzasuleman)\
**Post date:** [May 21, 2024, 10:50am UTC](https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381/1 "2024-05-21T10:50:32Z")

</div>

Dear Zoom Support Team,

I am currently integrating the Zoom Meeting SDK into our web application, but I am encountering an “Invalid signature” error when attempting to join a meeting. Despite following the documentation and testing with the sample web SDK, the issue still exists.

---

<div class="post-metadata">

**Author:** ![Fario\_Consulting](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@Fario\_Consulting](https://devforum.zoom.us/u/Fario_Consulting)\
**Post date:** [May 21, 2024, 5:00pm UTC](https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381/2 "2024-05-21T17:00:36Z")

</div>

Hi Hamza,  
Have a look at the [Troubleshootng guide for the meeting sdk signature validation](https://devforum.zoom.us/t/troubleshooting-meeting-sdk-signature-validation/85961/2)

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [May 21, 2024, 5:08pm UTC](https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381/3 "2024-05-21T17:08:26Z")

</div>

@hamzasuleman Hope you will be fine.

Here is NodeJS sample

```auto
function generateSignature(meetingNumber, role) {
    const iat = Math.round(new Date().getTime() / 1000) - 30;
    const exp = iat + 60 * 60 * 2

    const oHeader = {
        alg: 'HS256',
        typ: 'JWT'
    }

    const oPayload = {
        sdkKey: process.env.ZOOM_APP_KEY,
        mn: meetingNumber,
        role: role,
        iat: iat,
        exp: exp,
        appKey: process.env.ZOOM_APP_KEY,
        tokenExp: iat + 60 * 60 * 2
    }

    const sHeader = JSON.stringify(oHeader)
    const sPayload = JSON.stringify(oPayload)
    const signature = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, process.env.ZOOM_APP_SECRET)

    return signature;
}

```

And here is valid payload params

```auto
{
  "sdkKey": "ajQ8mmtQ_GKxIzGCg4XSA",
  "mn": 87954282182,
  "role": 1,
  "iat": 1714569281,
  "exp": 1714576481,
  "appKey": "ajQ8mmtQ_GKxIzGCg4XSA",
  "tokenExp": 1714576481
}

```

Thanks

---

<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:** [May 24, 2024, 12:18am UTC](https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381/4 "2024-05-24T00:18:52Z")

</div>

Please let us know if the information provide helps!

---

<div class="post-metadata">

**Author:** ![hamzasuleman](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@hamzasuleman](https://devforum.zoom.us/u/hamzasuleman)\
**Post date:** [May 27, 2024, 9:01am UTC](https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381/5 "2024-05-27T09:01:37Z")

</div>

Yes, the issue is resolved.

---

<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:** [May 29, 2024, 4:42am UTC](https://devforum.zoom.us/t/invalid-signature-error-with-zoom-meeting-sdk-3-6-1/110381/6 "2024-05-29T04:42:17Z")

</div>

Glad to hear this was resolved!
