Signature is invalid Zoom Web SDK 2.7.0

Description
Iam using Zoom Web Sdk 2.7.0 Authorization
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

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

your token:

{
  "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

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

there is a very good tutorial on youtube

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

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.

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 - MeetingSDK - Web - v2.7.0 - Zoom Updates
2 - JWT app type migration guide

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