Invalid signature and browser restriction

We are getting a error from attendee session joining 'like browser restriction and signature is invalid’ in the meeting sdk
Please check and give us an update

@BackstageDev Hi, I hope you are well.

Please verify a few things:

  • marketplace.zoom.us → Manage → Select App → Embed → Allow Meeting SDK toggle
  • Share your signature generation code snippet or follow the helper below:
const KJUR = require('jsrsasign');

function generateSignature({ meeting, role }) {
    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_APP_KEY,
        mn: meeting.id,
        role,
        iat: iat,
        exp: exp,
        appKey: process.env.ZOOM_APP_KEY,
        tokenExp: iat + 60 * 60 * (process.env.MEETING_DURATION_IN_HOURS || 3)
    };

    const sHeader = JSON.stringify(oHeader);
    const sPayload = JSON.stringify(oPayload);
    const signature = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, process.env.ZOOM_APP_SECRET);
    return signature;
}

module.exports = {
    generateSignature
};

Feel free to ask if the issue persists.

Thanks,
Naeem Ahmed