Video SDK: {"type":"JOIN_MEETING_FAILED","reason":"This account does not exist or does not belong to you","errorCode":200}

The code which I use for signature generation:

                <script src="https://cdnjs.cloudflare.com/ajax/libs/jsrsasign/8.0.20/jsrsasign-all-min.js"></script>

function generateVideoToken(sdkKey, sdkSecret, topic, password = "") {
                    let signature = "";
                    // try {
                    const iat = Math.round(new Date().getTime() / 1000);
                    const exp = iat + 60 * 60 * 2;

                    // Header
                    const oHeader = { alg: "HS256", typ: "JWT" };
                    // Payload
                    const oPayload = {
                        app_key: sdkKey,
                        iat,
                        exp,
                        tpc: topic,
                        pwd: password,
                    };
                    // Sign JWT
                    const sHeader = JSON.stringify(oHeader);
                    const sPayload = JSON.stringify(oPayload);
                    signature = KJUR.jws.JWS.sign("HS256", sHeader, sPayload, sdkSecret);

                    return signature;
                }

Also, I have tried to generate signature by using Heroku app.

But all the time I receive the following error: This account does not exist or does not belong to you

@tommy How could I verify that my account is Video SDK developer account?

It is not easy to differentiate between Meeting and Video SDK accounts. For instance, if somebody created an account for you the only option to know that it is a Video SDK account is to check if the “Build Video SDK” option is available in Marketplace, for Meeting SDK it is “Build App”.

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