i am getting this error -
{
"type": "JOIN_MEETING_FAILED",
"reason": "Signature is invalid.",
"errorCode": 3712
}
this is the code to generate signature
const iat = Math.round(new Date().getTime() / 1000) - 30;
const exp = iat + 60 * 60 * 2;
const oHeader = { alg: 'HS256', typ: 'JWT' };
const oPayload = {
sdkKey: process.env.ZOOM_MEETING_SDK_KEY,
mn: req.body.meetingNumber,
role: 0,
iat: iat,
exp: exp,
tokenExp: iat + 60 * 60 * 2,
};
const sHeader = JSON.stringify(oHeader);
const sPayload = JSON.stringify(oPayload);
console.log({ sHeader, sPayload });
const signature = KJUR.jws.JWS.sign(
'HS256',
sHeader,
sPayload,
process.env.ZOOM_MEETING_SDK_SECRET
);
res.json({ data: signature });