Description
I have create an app, and followed the instruction found here @zoomus/websdk - npm, but always get “Signature is invalid” error
Error
Signature is invalid.
Which version?
1.8.5
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Create app in Zoom Marketplace
- Clone GitHub - zoom/meetingsdk-auth-endpoint-sample: Generate a Meeting SDK JWT to join Zoom meetings and webinars with the Meeting SDK. to local
- Add .env file with my SDK Key and Secret
- Start node project
- Create new React app
- Add @zoomus/websdk package and made node_modules/@zoomus/websdk/dist/lib/ folder accessible
- Add this code to initialize ZoomMeeting
import { ZoomMtg } from ‘@zoomus/websdk’
import http from ‘axios’const signatureEndpoint = ‘localhost:4000’ (with http://)
const apiKey = ‘MY_APIKEY’
const meetingNumber = ‘MY_MEETING_NR’
const role = 0
const leaveUrl = ‘localhost:3000’ (with http://)
const userName = ‘Test user’
const userEmail = ‘’
const passWord = ‘’ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
http.post(signatureEndpoint, {
“meetingNumber”: meetingNumber,
“role”: role
}).then(response => {
ZoomMtg.init({
leaveUrl: leaveUrl,
isSupportAV: true,
success: (success) => {
console.log(success)
ZoomMtg.join({
signature: response.data.signature,
meetingNumber: meetingNumber,
userName: userName,
apiKey: apiKey,
userEmail: userEmail,
passWord: passWord,
success: (success) => {
console.log(success)
},
error: (error) => {
console.error(‘Err’)
console.log(error)
}
})}, error: (error) => { console.log(error) } })
})