# Signature is invalid Zoom Web SDK 2.7.0

**URL:** <https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728>\
**Category:** Web\
**Created:** [September 10, 2022, 12:39pm UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728 "2022-09-10T12:39:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfok](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mfok/32/59224_2.png) [@mfok](https://devforum.zoom.us/u/mfok)\
**Post date:** [September 10, 2022, 12:39pm UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728/1 "2022-09-10T12:39:38Z")

</div>

**Description**  
Iam using Zoom Web Sdk 2.7.0 [Authorization](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/)  
Iam getting Signature invalid, i have tried to use both JWT app key and secret and SDK app credentials, both giving same error.

**Browser Console Error**  
{  
“type”: “JOIN\_MEETING\_FAILED”,  
“reason”: “Signature is invalid.”,  
“errorCode”: 3712  
}

**Which Web Meeting SDK version?**  
Zoom Web SDK 2.7.0

**Meeting SDK Code Snippets**  
const client = ZoomMtgEmbedded.createClient()

let meetingSDKElement = document.getElementById(‘meetingSDKElement’)

client.init({  
debug: true,  
zoomAppRoot: meetingSDKElement,  
language: ‘en-US’,  
customize: {  
meetingInfo: [  
‘topic’,  
‘host’,  
‘mn’,  
‘pwd’,  
‘telPwd’,  
‘invite’,  
‘participant’,  
‘dc’,  
‘enctype’,  
],  
toolbar: {  
buttons: [  
{  
text: ‘Custom Button’,  
className: ‘CustomButton’,  
onClick: () =\> {  
console.log(‘custom button’)  
}  
}  
]  
}  
}  
});

client.join({  
sdkKey: JWT APP KEY  
signature: “\<%= @token %\>”, // role in SDK Signature needs to be 0  
meetingNumber: “Meeting number”,  
password: ‘’,  
userName: “john”  
});

here is the jwt token generated  
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZGtLZXkiOiJjU00zYUhPOFNuYXpRNDlUbkY1YWlRIiwibW4iOiI4MjI5OTg3MDM1NiIsInJvbGUiOjAsImlhdCI6IjE2NjI3ODM4MTUiLCJleHAiOiIxNjYyODEzODE1IiwidG9rZW5FeHAiOiIxNjYyODEzODE1In0.krcCDYoQ9dyQ19tBk0rtWb3FEGh360-cbay07G8vJo8

please help fix the issue

---

<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:** [September 11, 2022, 8:47pm UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728/2 "2022-09-11T20:47:59Z")

</div>

SDK app signatures are correct for 2.7.0 - the last version for JWT app signatures was 2.6.0

your token:

```auto
{
  "typ":"JWT",
  "alg":"HS256"
}{
  "sdkKey":"cSM3aHO8Snaz...",
  "mn":"822998...",
  "role":0,
  "iat":"1662783815", // Saturday, 10 September 2022 04:23:35
  "exp":"1662813815", // Saturday, 10 September 2022 12:43:35
  "tokenExp":"1662813815" // Saturday, 10 September 2022 12:43:35
}

```

the value of exp/tokenExp is unusual, normaly it’s 2 hours after iat

> <https://github.com/zoom/meetingsdk-auth-endpoint-sample/blob/master/index.js>

as first steps with zoom api, I would try the example app on Github (-\> CDN client view)

> **[GitHub - zoom/meetingsdk-web-sample: Zoom Meeting SDK web sample](https://github.com/zoom/meetingsdk-web-sample)**
>
> Zoom Meeting SDK web sample. Contribute to zoom/meetingsdk-web-sample development by creating an account on GitHub.

there is a very good tutorial on youtube

[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/5/054d5a50d5aea1cc33012ca06709ae571ed7994b.jpeg "Zoom Meeting SDK Tutorial") ](https://www.youtube.com/watch?v=fMIXcLlBwZ0)

---

<div class="post-metadata">

**Author:** ![mfok](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mfok/32/59224_2.png) [@mfok](https://devforum.zoom.us/u/mfok)\
**Post date:** [September 12, 2022, 1:45am UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728/3 "2022-09-12T01:45:45Z")

</div>

> [@j.schoenemeyer](#):
>
> `const iat = Math.round(new Date().getTime() / 1000) - 30;`

Thanks for your reply, iam generating signature in ruby.  
now iam getting Signature has expired. please help me fix this.

---

<div class="post-metadata">

**Author:** ![mfok](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mfok/32/59224_2.png) [@mfok](https://devforum.zoom.us/u/mfok)\
**Post date:** [September 12, 2022, 2:27pm UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728/4 "2022-09-12T14:27:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/3/933661c3417575bc2a05f0b9b601e149cbc81c65.png)

Hi iam getting this but it shows i have joined as participant in host window, but stays as connecting in participant window.

please help fix this.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 14, 2022, 1:53am UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728/5 "2022-09-14T01:53:40Z")

</div>

Hi @mfok ,  
For version 2.7.0[1] and beyond you will need to create a SDK App in marketplace and use SDK Key/Secret to generate a signature and join a meeting. Please reference this migration guide[2] to show you how to migrate using SDK app .

Let us know if this helps!  
1 -[https://devsupport.zoom.us/hc/en-us/sections/9220917097869-web](https://devsupport.zoom.us/hc/en-us/sections/9220917097869-web)  
2 - [https://marketplace.zoom.us/docs/guides/build/jwt-app/jwt-app-migration/#migration-guide-for-meeting-sdk-for-web-using-a-zoom-jwt-app-type](https://marketplace.zoom.us/docs/guides/build/jwt-app/jwt-app-migration/#migration-guide-for-meeting-sdk-for-web-using-a-zoom-jwt-app-type)

---

<div class="post-metadata">

**Author:** ![mfok](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mfok/32/59224_2.png) [@mfok](https://devforum.zoom.us/u/mfok)\
**Post date:** [September 15, 2022, 10:03am UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728/6 "2022-09-15T10:03:08Z")

</div>

iam using sdk app type key and secret for component view, it says connecting and giving this error in console.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/3/933661c3417575bc2a05f0b9b601e149cbc81c65.png)

---

<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 15, 2022, 8:04pm UTC](https://devforum.zoom.us/t/signature-is-invalid-zoom-web-sdk-2-7-0/75728/7 "2022-10-15T20:04:08Z")

</div>

Closed on October 15, 2022, 8:04pm UTC

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