Joining Meeting Signature is invalid

I’m testing zoom/meetingsdk-react-sample
I created a signature via zoom/meetingsdk-auth-endpoint-sample. However, when I joined the meeting, I received the error as shown.

{
“method”: “join”,
“status”: false,
“result”: “Invalid signature.”,
“errorCode”: 3712,
“errorMessage”: “Signature is invalid.”
}

Steps to reproduce the behavior:

  1. Go To localhost:3000
  2. Click on Join Meeting
  3. See error

My sdkKey: OhOVnsNrTracgsTUpj5jGg
My Signature: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJPaE9WbnNOclRyYWNnc1RVcGo1akdnIiwic2RrS2V5IjoiT2hPVm5zTnJUcmFjZ3NUVXBqNWpHZyIsIm1uIjoiOTQzMTQxNzg2MjkiLCJyb2xlIjoxLCJpYXQiOjE3MjMwMjYwOTAsImV4cCI6MTcyMzAzMzI5MCwidG9rZW5FeHAiOjE3MjMwMzMyOTB9.181ASb4XAIuRxxNMyhQL9cMfRiwlIXMMrPQE9MgUppI

Hi,
The “Invalid signature” error (errorCode: 3712) when joining a Zoom meeting with the Meeting SDK usually indicates a problem with the signature generation. Ensure you are using the correct SDK Key and Secret from your Zoom App credentials. Double-check the signature generation logic to confirm it follows Zoom’s guidelines, using the JWT format correctly. Also, verify that the server time where the signature is generated is synchronized with an NTP server, as JWTs are time-sensitive. Lastly, make sure the JWT payload contains all the necessary fields accurately.
Regards,
Bryce June

Hi Team,

I used the correct SDK Key and Secret from your Zoom App credentials.

App Credentials
Client ID
OhOVnsNrTracgsTUpj5jGg

Client Secret
redacted

This is the code I used to generate the signature

app.post('/', (req, res) => {
  const requestBody = coerceRequestBody(req.body)
  const validationErrors = validateRequest(requestBody, propValidations, schemaValidations)

  if (validationErrors.length > 0) {
    return res.status(400).json({ errors: validationErrors })
  }

  const { meetingNumber, role, expirationSeconds } = requestBody
  const iat = Math.floor(Date.now() / 1000)
  const exp = expirationSeconds ? iat + expirationSeconds : iat + 60 * 60 * 2
  const oHeader = { alg: 'HS256', typ: 'JWT' }

  const oPayload = {
    appKey: 'OhOVnsNrTracgsTUpj5jGg',
    sdkKey: 'OhOVnsNrTracgsTUpj5jGg',
    mn: meetingNumber,
    role,
    iat,
    exp,
    tokenExp: exp
  }

  const sHeader = JSON.stringify(oHeader)
  const sPayload = JSON.stringify(oPayload)
  const sdkJWT = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, 'tTW1TneRcF6gpA56pnCFNjLT6DJQ7oKN')
  return res.json({ signature: sdkJWT })
})

Please help me check if there is any problem. If you need any more information I will provide.

Why can’t I insert images into my posts?
What conditions do I need to be able to add images to my posts?

@kiemdv

please reset your password.

In your general app, you need to turn on meeting sdk in the “embed” tab

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