Description
My Meeting SDK Account uses server-to-server OAuth. I have been able to create meetings using the APIs, but on using the same client_id and client_secret to start a meeting with the Web Implementation of the SDK, I get the invalid signature error.
I noticed according to this thread, Invalid Signature Error - #3 by arttbusinessschool42, that you had not concluded the issue here. Not your fault anyways, but I’d like to know where this issue could be coming from.
I look forward to your reply.
Browser Console Error
errorCode: 3712 errorMessage: "Signature is invalid." method: "join" result: "Invalid signature." status: false
Which Web Meeting SDK version?
2.17.0
Meeting SDK Code Snippets
`const iat = Math.round(new Date().getTime() / 1000) - 30;
const exp = iat + 60 * 60 * 2;
const oHeader = { alg: ‘HS256’, typ: ‘JWT’ };
const oPayload = {
sdkKey: sdkKey,
mn: meetingNumber,
role: role,
iat: iat,
exp: exp,
appKey: sdkKey,
tokenExp: exp
};
const sHeader = JSON.stringify(oHeader);
const sPayload = JSON.stringify(oPayload);
const signature = KJUR.jws.JWS.sign(‘HS256’, sHeader, sPayload, sdkSecret);`