# Invalid Signature with Sample Web App

**URL:** <https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005>\
**Category:** Web\
**Created:** [April 23, 2019, 1:35am UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005 "2019-04-23T01:35:44Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![szliuxi199908](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/szliuxi199908/32/2266_2.png) [@szliuxi199908](https://devforum.zoom.us/u/szliuxi199908)\
**Post date:** [November 5, 2019, 8:21am UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/21 "2019-11-05T08:21:47Z")

</div>

Just to post another screenshot about my javascript code (new user is only allowed to post one image per time).

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/de52b077c9ff64c2af9f3f4c0936620dcf701104.png)

---

<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, 9:49pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/22 "2019-11-05T21:49:41Z")

</div>

Hey @szliuxi199908, thanks for posting and using Zoom!

Are you using a [JWT App Type for the API key and secret](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app)?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![mchrenko](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mchrenko](https://devforum.zoom.us/u/mchrenko)\
**Post date:** [January 16, 2020, 1:37pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/23 "2020-01-16T13:37:07Z")

</div>

Hi!  
I am also experiencing this issue. Created a JWT App with key. Now what am I suppose to do with WebSDK? As of now I was generating signature and then passing it into init phase.  
I can’t find any related (valid) documentation of steps necessary to join webinar with JWT access token.  
Went through API docs, but can’t find related endpoint to which I should send my webinar ID and other params to obtain signature necessary for joining.  
Thanks for help!

---

<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 16, 2020, 7:50pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/24 "2020-01-16T19:50:05Z")

</div>

Hey @mchrenko,

For joining a webinar with the Web SDK, make sure to set the email in the `init` function:

```auto
// Email required for Webinars
userEmail: meetConfig.userEmail, 

```

Docs here:  
[https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/start-join-meeting](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/start-join-meeting)

Please share screenshots, error messages, and the webinarID if you have additional issues.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![mchrenko](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mchrenko](https://devforum.zoom.us/u/mchrenko)\
**Post date:** [January 16, 2020, 8:17pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/25 "2020-01-16T20:17:35Z")

</div>

Hi!  
Thanks for quick reply. I do know all the other params necessary for joining webinars. I did use API keys for development, but once deployed on production stack, I am having an issue with webinar joining bcs of the **signature**. So my question is - how to generate signature when using JWT?

My join code looks like this

```auto
ZoomMtg.join({
        meetingNumber: meetingNumber,
        userName: userName,
        userEmail: userEmail,
        signature: ???signature???, // how to calculate it when using JWT?
        apiKey: ZOOM_API_KEY,
        passWord: webinarPassword,

```

Thanks for any kind of help.

---

<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 16, 2020, 8:19pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/26 "2020-01-16T20:19:28Z")

</div>

Hey @mchrenko,

Have you seen our docs on how to create a signature:

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

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![mchrenko](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mchrenko](https://devforum.zoom.us/u/mchrenko)\
**Post date:** [January 16, 2020, 8:23pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/27 "2020-01-16T20:23:42Z")

</div>

Yes, we were generating signature but the generated token is not working when passed into join method. It returns errorCode 1 - join failed.  
When generating locally (using ZoomMtg.generateSignature) - joining works fine.  
I am struggling getting to know differences between SDK API keys vs JWT.  
Anyhow currently we have sample code for generating signature at our API and when trying to join webinar, we are failing with generic error (but the only thing that changes is signature, so I assume the reason behind this issue lies somewhere near).  
Can you please be more specific when we **must** use JWT (and how to use it) and when we can use generating signature from sample code?

---

<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 16, 2020, 8:28pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/28 "2020-01-16T20:28:44Z")

</div>

Hey @mchrenko,

Yes it does sound like an issue generating the signature.

> [@mchrenko](#):
>
> Can you please be more specific when we **must** use JWT (and how to use it) and when we can use generating signature from sample code?

To use the Web SDK, you need to use a JWT App Type Key and Secret to [generate the signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature) to authenticate.

To call the [Zoom APIs](https://marketplace.zoom.us/docs/api-reference/introduction), you can use the J[WT Token.](https://devforum.zoom.us/t/how-to-create-jwt-token-using-rest-api-in-c/6620/4)

Can you share the code you are using to generate the signature so I can help debug? Also make sure to use a real meeting ID.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![mchrenko](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mchrenko](https://devforum.zoom.us/u/mchrenko)\
**Post date:** [January 16, 2020, 8:39pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/29 "2020-01-16T20:39:28Z")

</div>

Thanks for replies. But I think we do not understand completely.

My working solution:

- generating signature on the front-end (like in the sample app), using WebSDK method `ZoomMtg.generateSignature()`

Since for generating signature you need ZOOM API KEY SECRET, we ported this [very generate signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature) to our API.

My production not-so-working solution:

- have our custom API `zoom/signature` that returns signature based on your sample code.
- once using this signature, I can’t join the webinar with generic error message

We use real meeting ID (9 digits, no dashes)  
As we were debugging this - WebSDK `generateSignature` returns slightly different signatures than your Node.js sample code. We put there the same timestamp, same meeting ID, same email and username with different signature results.

---

<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 16, 2020, 8:57pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/30 "2020-01-16T20:57:53Z")

</div>

Hey @mchrenko,

Please private message me the meetingID you are trying to join, as well as the signature you have generated that is throwing the error.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![mchrenko](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mchrenko](https://devforum.zoom.us/u/mchrenko)\
**Post date:** [January 21, 2020, 1:55pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/31 "2020-01-21T13:55:12Z")

</div>

Thank you Tommy for helping me out!

---

<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 21, 2020, 4:58pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/32 "2020-01-21T16:58:23Z")

</div>

You are welcome @mchrenko! 🙂

For others reference, they were not correctly generating their signature.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![subodh.kedar](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@subodh.kedar](https://devforum.zoom.us/u/subodh.kedar)\
**Post date:** [March 9, 2020, 9:31am UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/33 "2020-03-09T09:31:08Z")

</div>

We are also getting the same error. Created jwt token, APi key and secret key. generated the signature but still getting same error “Invalid Signature”. Meeting number is “162168453”

---

<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:** [March 9, 2020, 4:01pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/34 "2020-03-09T16:01:31Z")

</div>

Hey @subodh.kedarm thanks for posting and using Zoom!

Can you please share your signature with me so I can debug?

Also, please checkout our [sample signature code](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature), and [sample app](https://github.com/zoom/websdk-sample-signature-node.js).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![subodh.kedar](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@subodh.kedar](https://devforum.zoom.us/u/subodh.kedar)\
**Post date:** [March 10, 2020, 11:59am UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/35 "2020-03-10T11:59:30Z")

</div>

Hi Tommy,

Thanks for your reply. It has been fixed now.

I am facing the below error now fro VIDEO chat. Audio chat is working for me but with noise in the background.

“Cannot detect your camera, please check the device and connection and try again.”

Same browser, same settings of the camera works fine for [zoom.us](http://zoom.us) but not for local, giving above error. I have allowed camera access in the browser from site settings privacy policy.

It would be nice if you guide me on this.

Best regards,

---

<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:** [March 10, 2020, 4:38pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/36 "2020-03-10T16:38:00Z")

</div>

Hey @subodh.kedar, happy to help! 🙂

I think the issue is your site needs to use `https`. Are you using `https`?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![beyafabrice](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/beyafabrice/32/3494_2.png) [@beyafabrice](https://devforum.zoom.us/u/beyafabrice)\
**Post date:** [March 11, 2020, 12:26pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/37 "2020-03-11T12:26:52Z")

</div>

Hi Everyone,

Hope this helps someone the example code provided is missing json content headers which results in an empy body on the backend, thus resulting in a bad signature:

Wrong eg:

getSignature(meetConfig) {  
fetch(`${YOUR_SIGNATURE_ENDPOINT}`, {  
method: ‘POST’,  
body: JSON.stringify({ meetingData: meetConfig })  
})  
…  
Correct Code:

```auto
getSignature(meetConfig) {
	fetch(`${YOUR_SIGNATURE_ENDPOINT}`, {
			method: 'POST',
 headers: {
            'Accept': 'application/json',
            'Content-Type': 'application/json'
        },
			body: JSON.stringify({ meetingData: meetConfig })
		})
...

Regards
Fabrice
```

---

<div class="post-metadata">

**Author:** ![subodh.kedar](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@subodh.kedar](https://devforum.zoom.us/u/subodh.kedar)\
**Post date:** [March 11, 2020, 1:36pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/38 "2020-03-11T13:36:28Z")

</div>

Thanks, it worked.

But mozilla and safari has issue with SDK. It does not show the option to connect with computer audio. Instead it provides connect using phone. Please let us know if we can have it using computer audio as well.

All works fine for chrome.

---

<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:** [March 11, 2020, 3:41pm UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/39 "2020-03-11T15:41:04Z")

</div>

Hey @subodh.kedar, that is known functionality.

Please see our browser support here:

[https://marketplace.zoom.us/docs/sdk/native-sdks/web#browser-support](https://marketplace.zoom.us/docs/sdk/native-sdks/web#browser-support)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![utkrist](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/utkrist/32/3962_2.png) [@utkrist](https://devforum.zoom.us/u/utkrist)\
**Post date:** [March 23, 2020, 9:51am UTC](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005/40 "2020-03-23T09:51:10Z")

</div>

Hi Tommy,

I am getting the folowing error:

Joining meeting timeout.  
password wrong

I simply did ‘host the meeting’ with video on, and copied the meeting id from the generated link.  
I havent set any password while setting up the meeting.

Please help.

[Previous page](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005.md?page=1)

[Next page](https://devforum.zoom.us/t/invalid-signature-with-sample-web-app/4005.md?page=3)
