I cannot connect anymore I keep getting the same message, it was working last year but not anymore this year. Signature seems fine but the error keeps popping and there is no clear message what is happening.
This is how I generate the token:
function generateSignature(clientID, clientSecret, meetingNumber, role) {
const iat = Math.floor(Date.now() / 1000);
const exp = iat + 60 * 60 * 2;
const oHeader = {alg: “HS256”, typ: “JWT”};
const oPayload = {
appKey: clientID,
mn: meetingNumber,
role: role,
iat: iat,
exp: exp,
tokenExp: exp,
video_webrtc_mode: 1,
};
const sHeader = JSON.stringify(oHeader);
const sPayload = JSON.stringify(oPayload);
return KJUR.jws.JWS.sign(“HS256”, sHeader, sPayload, clientSecret);
}
And this is how I join the meeting:
this.ngZone.runOutsideAngular(() => {
const meetingSDKElement = document.getElementById(‘meetingSDKElement’);
this.client.init({zoomAppRoot: meetingSDKElement, language: ‘en-US’, patchJsMedia: true, leaveOnPageUnload: true}).then(() => {
this.client.join({
signature: generatedToken,
meetingNumber: meeting.meeting,
password: meeting.info,
userName: currenUser?.displayName || ‘’,
userEmail: currenUser?.email || ‘’,
}).then(() => {
console.log(‘joined successfully’)
}).catch((error) => {
console.log(error)
})
}).catch((error) => {
console.log(error)
})
})