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.
{
“method”: “join”,
“status”: false,
“result”: “Invalid signature.”,
“errorMessage”: “Signature is invalid.”,
“errorCode”: 3712
}
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);`
This is my key:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiIyZlpNQ1BlRVRXQ3Exb3QyUGRySnR3IiwibW4iOjgxODcwNzU1NDc1LCJyb2xlIjoxLCJpYXQiOjE3MjA2MTE4NjksImV4cCI6MTcyMDYxMTg5OSwidG9rZW5FeHAiOjE3MjA2MTE4OTl9.kE33DdzgJlmH2OS5I1cyh-QKyHXOZ9W0lZ29YeNyuZc