i am using server to server auth for zoom integration in laravel. meeting is created all the detail of meeting is available but when start the meeting it giving the error of invalid signature.
ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();
var signature = ZoomMtg.generateSDKSignature({
meetingNumber:meetingNumber ,
sdkKey: sdkKey,
sdkSecret: api_secret,
role:role,
success: function (res) {
meetingConfig.signature = res.result;
meetingConfig.sdkKey = sdkKey;
},
});
startMeeting(signature,meetingNumber,passWord,userName,userEmail,sdkKey,zakToken,registrantToken);
function startMeeting(signature,meetingNumber,passWord,userName,userEmail,sdkKey,zakToken,registrantToken) {
document.getElementById('zmmtg-root').style.display = 'block'
ZoomMtg.i18n.load(meetingConfig.lang);
ZoomMtg.init({
leaveUrl: leaveUrl,
webEndpoint: meetingConfig.webEndpoint,
disableCORP: !window.crossOriginIsolated, // default true
// disablePreview: false, // default false
externalLinkPage: "./externalLinkPage.html",
success: function () {
console.log(meetingConfig);
console.log("signature", signature);
ZoomMtg.join({
meetingNumber: meetingNumber,
userName: userName,
signature: signature,
sdkKey: sdkKey,
userEmail: userEmail,
passWord: passWord,
success: function (res) {
console.log("join meeting success");
console.log("get attendeelist");
},
error: function (res) {
console.log(res);
},
});
},
error: function (res) {
console.log(res);
},
});