# What's wrong with my signature?

**URL:** <https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270>\
**Category:** Web\
**Created:** [September 5, 2020, 1:03pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270 "2020-09-05T13:03:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremysh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremysh/32/14581_2.png) [@jeremysh](https://devforum.zoom.us/u/jeremysh)\
**Post date:** [September 5, 2020, 1:03pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/1 "2020-09-05T13:03:36Z")

</div>

**Description**  
Signature is invalid

**Which version?**  
v1.8.0

**Signature**

---

<div class="post-metadata">

**Author:** ![jeremysh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremysh/32/14581_2.png) [@jeremysh](https://devforum.zoom.us/u/jeremysh)\
**Post date:** [September 6, 2020, 11:33pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/2 "2020-09-06T23:33:11Z")

</div>

@tommy Sorry for bumping to you Tommy, but I have an event scheduled in a couple weekends and really need to get this Web SDK working since iFrames are no longer supported. I’ve tried multiple ways to get a valid signature and can’t even get the sample CDN web sample working.

---

<div class="post-metadata">

**Author:** ![jeremysh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremysh/32/14581_2.png) [@jeremysh](https://devforum.zoom.us/u/jeremysh)\
**Post date:** [September 6, 2020, 11:51pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/3 "2020-09-06T23:51:43Z")

</div>

I have my signature being generated from a php page here:  
[https://zoom.horrorhound.com/generateSignature.php](https://zoom.horrorhound.com/generateSignature.php)  
Each time you hit this page; it’ll generate a new signature which I have index.js from the sample calling to obtain the signature.

---

<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:** [September 9, 2020, 3:04pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/4 "2020-09-09T15:04:56Z")

</div>

Hey @jeremysh,

Thanks for sharing your signature generator and describing the error you’re running into. Just to make sure we’re on the same page, you’re intending to **join** a meeting using this signature, correct? (I see you’re passing role ‘0’ into the signature currently, which is to join. (Starting a meeting is role ‘1’—if this is what you’re intending to do, just let me know)

If joining is your intention, can you ensure that the meeting with the ID in your signature already exists in Zoom and has been started before you attempt to join?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![jeremysh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremysh/32/14581_2.png) [@jeremysh](https://devforum.zoom.us/u/jeremysh)\
**Post date:** [September 12, 2020, 12:58am UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/5 "2020-09-12T00:58:06Z")

</div>

Yes, Meeting has been started and verified the ID is correct. I also tried setting role=1 when the meeting hadn’t been started yet which also still threw the signature error.

---

<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:** [September 15, 2020, 12:37am UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/6 "2020-09-15T00:37:47Z")

</div>

Hey @jeremysh,

Looks like you are using an SDK App to generate the Web SDK signature.

You need to use a [JWT App](https://marketplace.zoom.us/docs/guides/build/jwt-app) instead. Also, make sure you have a [Pro or higher Zoom account](https://zoom.us/pricing).

Let me know if that helps! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jeremysh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremysh/32/14581_2.png) [@jeremysh](https://devforum.zoom.us/u/jeremysh)\
**Post date:** [September 18, 2020, 4:36pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/7 "2020-09-18T16:36:56Z")

</div>

Ok, I created a JWT App and updated my api key/secret in my code.  
I also made myself the Licensed user; in the managed user section of my company account.

Here’s a sample of an updated signature:

[https://zoom.horrorhound.com/generateSignature.php](https://zoom.horrorhound.com/generateSignature.php)

My index.js (slightly modified from sample)  
[https://zoom.horrorhound.com/js/index.js](https://zoom.horrorhound.com/js/index.js)

Maybe I just start fresh building my own instead of trying to get the sample working.

---

<div class="post-metadata">

**Author:** ![jeremysh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremysh/32/14581_2.png) [@jeremysh](https://devforum.zoom.us/u/jeremysh)\
**Post date:** [September 19, 2020, 3:29pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/8 "2020-09-19T15:29:32Z")

</div>

Ok tried to create a very simple sample… Getting the following error:  
zoom-meeting-1.8.0.min.js:2 Uncaught TypeError: Cannot read property ‘0’ of null  
at w (zoom-meeting-1.8.0.min.js:2)  
at redux.min.js:1  
at a (redux.min.js:1)  
at redux-thunk.min.js:1  
at Object.zmg\_initMeetingConfig (redux.min.js:1)  
at c.value (zoom-meeting-1.8.0.min.js:2)  
at O (zoom-meeting-1.8.0.min.js:2)  
at Object.init (zoom-meeting-1.8.0.min.js:2)  
at zoom.js:13

> // zoom.js CDN version default
> 
> ZoomMtg.setZoomJSLib(‘[https://dmogdx0jrul3u.cloudfront.net/1.8.0/lib](https://dmogdx0jrul3u.cloudfront.net/1.8.0/lib)’, ‘/av’);
> 
> ZoomMtg.preLoadWasm();
> 
> ZoomMtg.prepareJssdk();
> 
> var mySignature = “”;
> 
> fetch(“[https://live.horrorhound.com/zoomGenerateSignature.php](https://live.horrorhound.com/zoomGenerateSignature.php)”)
> 
> .then(res =\> res.text())
> 
> .then(data =\> mySignature = data)
> 
> .then(() =\> console.log("mySignature: " + mySignature));
> 
> ZoomMtg.init({
> 
> ```
> leaveUrl: "/",
> 
> isSupportAV: false,
> 
> success: function() {
> 
> ZoomMtg.join({
> 
> signature: mySignature,
> 
> meetingNumber: '',
> 
> apiKey: '',
> 
> passWord: '',
> 
> success: (success) => {
> 
> console.log(success)
> 
> },
> 
> error: (error) => {
> 
> console.log(error)
> 
> }
> 
> })      
> 
> }
> 
> ```
> 
> });

---

<div class="post-metadata">

**Author:** ![jeremysh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremysh/32/14581_2.png) [@jeremysh](https://devforum.zoom.us/u/jeremysh)\
**Post date:** [September 20, 2020, 1:29am UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/9 "2020-09-20T01:29:29Z")

</div>

I guess leaveUrl can’t be “/”. That was throwing this error.

---

<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:** [September 22, 2020, 6:48am UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/10 "2020-09-22T06:48:56Z")

</div>

Hey @jeremysh,

Yes the leaveUrl must be a valid Url like `https://zoom.us`

Were you able to get the whole app working?

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:** [October 22, 2020, 4:48pm UTC](https://devforum.zoom.us/t/whats-wrong-with-my-signature/29270/11 "2020-10-22T16:48:58Z")

</div>

Closed on October 22, 2020, 4:48pm UTC

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