# Node.js Signature Example is wrong

**URL:** <https://devforum.zoom.us/t/node-js-signature-example-is-wrong/69196>\
**Category:** Meeting SDK\
**Created:** [May 18, 2022, 9:57pm UTC](https://devforum.zoom.us/t/node-js-signature-example-is-wrong/69196 "2022-05-18T21:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielcvaz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabrielcvaz/32/37815_2.png) [@gabrielcvaz](https://devforum.zoom.us/u/gabrielcvaz)\
**Post date:** [May 18, 2022, 9:57pm UTC](https://devforum.zoom.us/t/node-js-signature-example-is-wrong/69196/1 "2022-05-18T21:57:08Z")

</div>

The signature example found [here](https://marketplace.zoom.us/docs/sdk/native-sdks/web/signature/) for Node.js is incorrect.

The proper way to make the signature will be:

```nohighlight
const signature = Buffer
  .from(`${apiKey}.${meetingNumber}.${timestamp}.${role}.${hash}`)
  .toString('base64');

```

I didn’t find any way to contribute or fix it, so I am posting here in hope that some Dev from Zoom can see it

---

<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:** [December 23, 2022, 11:49am UTC](https://devforum.zoom.us/t/node-js-signature-example-is-wrong/69196/2 "2022-12-23T11:49:07Z")

</div>

@gabrielcvaz,

Thank you for posting in the Zoom Developer Forum and sorry for the missed response. You are correct. The signature example found there is not an up-to-date example. That example is for a JW. Instead, you want to reference the SDK JWT example found here :

[https://marketplace.zoom.us/docs/sdk/native-sdks/auth/](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/)

Please let me know if you have any questions about this.
