Bug: SDK Key and Secret Missing From App Credentials

When I created Meeting SDK app, no sdk and secret key shows from App Credentials.

@rehan.khalid Hi, now you have the client Id & Secret. No SDK Key & Secret with new apps.

You need to get those (Client Id/Secret) credentials & build a signature for Join or host.

Thanks

So I can replace SDK key with Client ID and SDK secret with Client secret for my implement without any other changes - Screenshot by Lightshot , right?
Thanks

@rehan.khalid Yes, here is the NodeJS sample

const KJUR = require('jsrsasign');

function generateSignature(meetingNumber, 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: meetingNumber,
        role: role,
        iat: iat,
        exp: exp,
        appKey: process.env.ZOOM_APP_KEY,
        tokenExp: iat + 60 * 60 * 2
    }

    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
}
1 Like