# Zoom Web Meeting SDK v2.8.0 Invalid Signature

**URL:** <https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167>\
**Category:** Web\
**Tags:** web-meeting-sdk\
**Created:** [October 10, 2022, 6:55am UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167 "2022-10-10T06:55:46Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mao2x.777](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@mao2x.777](https://devforum.zoom.us/u/mao2x.777)\
**Post date:** [October 10, 2022, 6:55am UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/1 "2022-10-10T06:55:46Z")

</div>

**Description**  
Hi, I’m using Web Meeting SDK v2.8.0 to start & join a meeting.  
When the page load, its said invalid signature in network tabs(inspect element).  
then I tried to resend the request through the network tabs by double-clicking, and it succeed.  
but when I reload the page its said invalid signature again. Please help.

**Browser Console Error**  
Request : /api/v1/wc/info?meetingNumber=77416987132&userName=Hendry&passWord=123Abc%2B&signature=[REDACTED]&lang=en-US&userEmail=&cv=2.8.0&proxy=1&sdkOrigin=aHR0cHM6Ly9hdmEtYmFja29mZmljZS5iY2FmLmNvLmlk&tk=&ztk=&zsk=&ulsm=0&sdkUrl=aHR0cHM6Ly9hdmEtYmFja29mZmljZS5iY2FmLmNvLmlkOi9BZ2VudC9SZXF1ZXN0L0NvbmZpcm0&captcha=&captchaName=&suid=&corsHeader=false&signatureType=sdk&callback=localJsonpCallback1  
Response : localJsonpCallback1({“status”:false,“errorCode”:200,“errorMessage”:“Invalid signature.”})

**Which Web Meeting SDK version?**  
2.8.0

**Meeting SDK Code Snippets**  
signature :  
{  
“appKey”: “[REDACTED]”,  
“sdkKey”: “[REDACTED]”,  
“mn”: [REDACTED],  
“role”: 1,  
“iat”: 1665383390,  
“exp”: 1665385190,  
“tokenExp”: 1665385190  
}

Script :  
function startJoinHost(){  
let sdkKey = “[REDACTED]”;  
let signature = “[REDACTED]”;  
let meetingNumber = “[REDACTED]”;  
let password = “123Abc+”;  
let userName = “Hendry”;  
let zakToken = document.getElementById(‘zakToken’).value;  
ZoomMtg.preLoadWasm();  
ZoomMtg.prepareWebSDK();  
// loads language files, also passes any error messages to the ui  
ZoomMtg.i18n.load(‘en-US’);  
ZoomMtg.i18n.reload(‘en-US’);  
ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/2.8.0/lib](https://source.zoom.us/2.8.0/lib)’, ‘/av’);

```
ZoomMtg.init({
	debug: true,
	leaveUrl: baseURL+"/Agent/Request/End",
	showMeetingHeader: false, //option
	disableInvite: true, //optional
	disableCallOut: true, //optional
	disableRecord: false, //optional
	disableJoinAudio: false, //optional
	audioPanelAlwaysOpen: true, //optional
	showPureSharingContent: false, //optional
	isSupportAV: true, //optional,
	isSupportChat: true, //optional,
	isSupportQA: false, //optional,
	isSupportPolling: false, //optional
	isSupportBreakout: false, //optional
	isSupportCC: false, //optional,
	screenShare: true, //optional,
	rwcBackup: '', //optional,
	videoDrag: false, //optional,
	sharingMode: 'fit', //optional,
	videoHeader: false, //optional,
	isLockBottom: false, // optional,
	isSupportNonverbal: false, // optional,
	isShowJoiningErrorDialog: true, // optional,
	disablePreview: true, // optional
	disableCORP: true, // optional
	meetingInfo: [ // optional
	  'topic',
	  'host',
	  'mn',
	  'pwd',
	  'telPwd',
	  'invite',
	  'participant',
	  'dc',
	  'enctype',
	  'report'
	],
	disableVoIP: false, // optional
	disableReport: false, // optional
	success: (success) => {
		console.log(success)

		ZoomMtg.join({
		  sdkKey : sdkKey,
		  signature : signature, // role in SDK Signature needs to be 0
		  meetingNumber	: meetingNumber,
		  passWord : password,
		  userName : userName,
		  success : (success) => {
			ZoomMtg.showRecordFunction({
				show: true
			});
			console.log(success)
		  },
		  error: (error) => {
			console.log(error)
		  }
		});
	},
	error: (error) => {
		console.log(error)
	}
});

```

}

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Create a Meeting using zoom API
2. Create Signature SDK Apps
3. Load Zoom Web SDK using CDN
4. See error

**Troubleshooting Routes**

- Checked the signature, compare to zoom documentation
- try decode with [jwt.io](http://jwt.io)
- Checked error console browser
- Checked network tabs browser if any resource failed to load
- Switched zoom account
- checked cookies and session
- Use another device
- Use another browser

**Device (please complete the following information):**

- Device: Macbook Pro
- OS: iOS 12.6 Montrey
- Browser: Firefox
- Browser Version 105

---

<div class="post-metadata">

**Author:** ![sulesanusi1](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sulesanusi1](https://devforum.zoom.us/u/sulesanusi1)\
**Post date:** [October 31, 2022, 10:46am UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/3 "2022-10-31T10:46:42Z")

</div>

Hi all, please I have been struggling with integrating the zoom web sdk into my website lately. below is the description of the error that I am getting:  
When I set the time on my device to GMT(i.e London time) I was able to login as an Attendee after a few trials but when I set the time to my local time (i.e GMT +1) I keep getting “Signature is invalid”.  
In either case, if the role is set to host I keep getting “Signature is invalid”.  
Please I really need this sdk in my app and will be glad to have this fixed.  
Thanks to you all.

---

<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:** [October 31, 2022, 4:09pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/4 "2022-10-31T16:09:44Z")

</div>

@sulesanusi1,

Welcome to the Zoom Developer Forum – happy to help. It seems the reason you are getting that issue is because of the timestamp when the token was issued. Double-check that the timestamp is in epoch time and satisfy the rules below :

 ![ef27c1b6b14453901888ac7208c5c439cd26ea5d](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/7/c7751b8a0cefe7efdfa1e8dfab5a7dc9a9a7b086.png)

## Resource

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

---

<div class="post-metadata">

**Author:** ![sulesanusi1](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sulesanusi1](https://devforum.zoom.us/u/sulesanusi1)\
**Post date:** [October 31, 2022, 10:15pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/5 "2022-10-31T22:15:09Z")

</div>

Thanks for the response, I still get the “signature is invalid” error when I tried to join meeting as a host, but the error disappears when I try to join as an attendee. Please is there a solution to this?

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [November 1, 2022, 12:46pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/6 "2022-11-01T12:46:34Z")

</div>

is your meeting created in the same zoom account like the Meeting SDK App?

> [@'Signature is invalid.', with meeting number created by other accounts](https://devforum.zoom.us/t/signature-is-invalid-with-meeting-number-created-by-other-accounts/75788/6):
>
> Hi Gianni, Thank you for your help! Now, my questions are almost clear. Let me clarify one last thing. ZAK token is only used for START their meeting, so in my understanding, people can JOIN a meeting without ZAK token after SDK app is published, is it right ?

---

<div class="post-metadata">

**Author:** ![sulesanusi1](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sulesanusi1](https://devforum.zoom.us/u/sulesanusi1)\
**Post date:** [November 1, 2022, 8:38pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/7 "2022-11-01T20:38:12Z")

</div>

Thanks so much, it’s working now, I was using meeting credentials from another account. I really appreciate your response.

---

<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:** [November 2, 2022, 1:29pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/8 "2022-11-02T13:29:10Z")

</div>

Glad to hear you were able to resolve the signature is invalid error @sulesanusi1 ! And thank you for your active participation and contributions to the Zoom Developer Forum, @j.schoenemeyer!

---

<div class="post-metadata">

**Author:** ![sulesanusi1](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sulesanusi1](https://devforum.zoom.us/u/sulesanusi1)\
**Post date:** [November 4, 2022, 9:58am UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/9 "2022-11-04T09:58:33Z")

</div>

Hi, please can you share with me a sample PHP code for generating SDK App type signature? I have not had any success trying to do that from my end.  
Thanks.

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [November 4, 2022, 10:08am UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/10 "2022-11-04T10:08:06Z")

</div>

> [@Can't generate correct web sdk signature in Laravel](https://devforum.zoom.us/t/cant-generate-correct-web-sdk-signature-in-laravel/72584/13):
>
> Yes, ofcourse. We were able to generate the working signature using this script: public function generateJWTKey(Request $request) { $key = $this-\>zoom\_api\_key; $secret = $this-\>zoom\_api\_secret; $meeting\_number = $request-\>meetingNumber; $role = $request-\>role; $token = array( "sdkKey" =\> $key, "mn" =\> $meeting\_number, "role" =\> $role, "iat" =\> time(), "exp" =\> time() + 3600, //60 seconds as su…

---

<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:** [November 4, 2022, 4:14pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/11 "2022-11-04T16:14:37Z")

</div>

Thank you for sharing this post on how to generate signatures with PHP @j.schoenemeyer.

---

<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:** [November 4, 2022, 4:15pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/12 "2022-11-04T16:15:18Z")

</div>

@sulesanusi1,

Should you have any additional questions, please let us know – we are always happy to help!

---

<div class="post-metadata">

**Author:** ![sulesanusi1](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sulesanusi1](https://devforum.zoom.us/u/sulesanusi1)\
**Post date:** [November 4, 2022, 8:35pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/13 "2022-11-04T20:35:09Z")

</div>

Hi, my project is not a laravel based project, is there no way to generate the signature using php’s built in function like hash\_hmac?  
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:** [November 5, 2022, 12:44pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/14 "2022-11-05T12:44:54Z")

</div>

@sulesanusi1 ,

For a list of libraries you can leverage to generate the signature using PHP, please visit [JWT.io](http://JWT.io) libraries for Token Signing/Verification page:

> **[JWT.IO - JSON Web Tokens Libraries](https://jwt.io/libraries?language=PHP)**
>
> Find an overview of libraries that help you work with JSON Web Tokens in your favorite language.

---

<div class="post-metadata">

**Author:** ![sulesanusi1](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sulesanusi1](https://devforum.zoom.us/u/sulesanusi1)\
**Post date:** [November 5, 2022, 10:11pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/15 "2022-11-05T22:11:05Z")

</div>

Thanks man, I have already downloaded the firebase library and it’s working fine. Great community, and lots of love from Nigeria.

---

<div class="post-metadata">

**Author:** ![sulesanusi1](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sulesanusi1](https://devforum.zoom.us/u/sulesanusi1)\
**Post date:** [November 10, 2022, 4:20pm UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/16 "2022-11-10T16:20:52Z")

</div>

> [@Zoom web sdk not working in android webview](https://devforum.zoom.us/t/zoom-web-sdk-not-working-in-android-webview/78515):
>
> Hi, please I keep getting the warning below when I try to launch the meeting in android webview: ‘Your camera and microphone are being used by other apps. Please close those apps and try again.’ But I have checked and no other app is using my camera. Thanks for your time.

---

<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:** [December 11, 2022, 2:21am UTC](https://devforum.zoom.us/t/zoom-web-meeting-sdk-v2-8-0-invalid-signature/77167/17 "2022-12-11T02:21:35Z")

</div>

Closed on December 11, 2022, 2:21am UTC

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