Error: Signature is invalid

Try to join zoom Meeting Using signature everytime it is throw error like below

{
“method”: “join”,
“status”: false,
“result”: “Invalid signature.”,
“errorCode”: 3712,
“errorMessage”: “Signature is invalid.”
}

step for creating signature using NodeJS
Node version: 20
jsrsasign: ^11.1.0

const getMsdkSignature = asyncHandler(async (req, res) => {
// const iat = Math.round(new Date().getTime() / 1000) - 30;
const iat = Math.floor(new Date().getTime() / 1000)
const exp = iat + 60 * 60 * 2;
const oHeader = { alg: “HS256”, typ: “JWT” };

const oPayload = {
sdkKey: process.env.CLIENT_ID,
appKey: process.env.CLIENT_ID,
mn: req.body.meetingNumber,
role: req.body.role,
iat: iat,
exp: exp,
tokenExp: exp,
};

const sHeader = JSON.stringify(oHeader);
const sPayload = JSON.stringify(oPayload);

let signature = KJUR.jws.JWS.sign(
“HS256”,
sHeader,
sPayload,
process.env.CLIENT_SECRET
);

res.json({
signature: signature,
});
});

1 Like

@mukunddtridhyatech

do you have a sample of the token, and are the clientID and clientSecret from either

  1. Meeting SDK App
  2. General App (with Meeting SDK Option enabled)

For point 2, it is necessary to turn on the Meeting SDK Option.

Can you provide me with proper steps on how to create Meeting SDK App, with a screenshot, I think I missed something while creating APP.

My Requirement

  • I want to one react APP that is used for creating Zoom meetings, showing a Meeting List, and joining Meetings within my app.
1 Like

@mukunddtridhyatech

on marketplace.zoom.us, click on “create legacy app”

image

Then click on Meeting SDK

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.