# Joining Meeting Signature is invalid

**URL:** <https://devforum.zoom.us/t/joining-meeting-signature-is-invalid/115191>\
**Category:** Web\
**Created:** [August 7, 2024, 10:26am UTC](https://devforum.zoom.us/t/joining-meeting-signature-is-invalid/115191 "2024-08-07T10:26:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiemdv](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kiemdv](https://devforum.zoom.us/u/kiemdv)\
**Post date:** [August 7, 2024, 10:26am UTC](https://devforum.zoom.us/t/joining-meeting-signature-is-invalid/115191/1 "2024-08-07T10:26:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bbcorhitter](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bbcorhitter/32/46890_2.png) [@bbcorhitter](https://devforum.zoom.us/u/bbcorhitter)\
**Post date:** [August 7, 2024, 11:04am UTC](https://devforum.zoom.us/t/joining-meeting-signature-is-invalid/115191/2 "2024-08-07T11:04:10Z")

</div>

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[,](https://freecinetv.com/)  
Bryce June

---

<div class="post-metadata">

**Author:** ![kiemdv](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kiemdv](https://devforum.zoom.us/u/kiemdv)\
**Post date:** [August 8, 2024, 1:43am UTC](https://devforum.zoom.us/t/joining-meeting-signature-is-invalid/115191/3 "2024-08-08T01:43:02Z")

</div>

Hi Team,

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

```auto
App Credentials
Client ID
OhOVnsNrTracgsTUpj5jGg

Client Secret
redacted

```

This is the code I used to generate the signature

```auto
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?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 12, 2024, 7:08am UTC](https://devforum.zoom.us/t/joining-meeting-signature-is-invalid/115191/5 "2024-08-12T07:08:07Z")

</div>

> [@kiemdv](#):
>
> `OhOVnsNrTracgsTUpj5jGg`

@kiemdv

please reset your password.

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

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/0/60ce367f0f1e24b14d9d3658df2e09926818344a.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 11, 2024, 5:08pm UTC](https://devforum.zoom.us/t/joining-meeting-signature-is-invalid/115191/6 "2024-09-11T17:08:34Z")

</div>

Closed on September 11, 2024, 5:08pm UTC

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