# Invalid Signature while join a meeting in SDK

**URL:** <https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511>\
**Category:** Meetings\
**Tags:** api\
**Created:** [May 8, 2024, 10:44am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511 "2024-05-08T10:44:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![healplace](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/healplace/32/59449_2.png) [@healplace](https://devforum.zoom.us/u/healplace)\
**Post date:** [May 8, 2024, 10:44am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511/1 "2024-05-08T10:44:06Z")

</div>

This is my Signature created for joining meeting but it was saying that signature is invalid

My Signature -  
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZGtLZXkiOiI1SU5pcWhsR1F5eWFUNFhDRzR0c19BIiwibW4iOiIxMjM0NTY3ODkiLCJyb2xlIjowLCJpYXQiOjE3MTUxNTYxMzUuMCwiZXhwIjoxNzE1MzI4OTM1LjAsImFwcEtleSI6IjVJTmlxaGxHUXl5YVQ0WENHNHRzX0EiLCJ0b2tlbkV4cCI6MTcxNTE5MjEzNS4wfQ.uNRtY7525TsJ3-2WkIs98rYbN9LpQFKQ45pwnui\_cqY

My Script in Python:

```auto
import jwt
import time
def generateSignature(data,secret):
    encoded_jwt = jwt.encode(data, secret, algorithm="HS256")
    return (encoded_jwt);
if __name__ == ' __main__':
    epoch_time = int(time.time())
    epoch_time_48hours_later=epoch_time+172800
    CLIENT_SECRET="redacted"
    CLIENT_ID="5INiqhlGQyyaT4XCG4ts_A"
    data = { "appKey": CLIENT_ID,
             "iat": epoch_time, 
             "exp": epoch_time_48hours_later, 
             "tokenExp": epoch_time_48hours_later,
             "mn":123412341234,
            "role":1,
            "sdkKey": CLIENT_ID
             
            }
    print (generateSignature(data,CLIENT_SECRET))

```

---

<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:** [May 9, 2024, 5:33am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511/2 "2024-05-09T05:33:43Z")

</div>

> [@healplace](#):
>
> eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZGtLZXkiOiI1SU5pcWhsR1F5eWFUNFhDRzR0c19BIiwibW4iOiIxMjM0NTY3ODkiLCJyb2xlIjowLCJpYXQiOjE3MTUxNTYxMzUuMCwiZXhwIjoxNzE1MzI4OTM1LjAsImFwcEtleSI6IjVJTmlxaGxHUXl5YVQ0WENHNHRzX0EiLCJ0b2tlbkV4cCI6MTcxNTE5MjEzNS4wfQ.uNRtY7525TsJ3-2WkIs98rYbN9LpQFKQ45pwnui\_cqY

@healplace the sample which you have share does not have the same value as what is generated from the code.

Some possible issues and rectification:

- Try with `role:0` first,  
-Secondly, make sure that your tokenEXP is the same as exp, the sample is showing tokenEXP = iat.
- Lastly, try it out with a meeting number which is created with an internal user.

---

<div class="post-metadata">

**Author:** ![healplace](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/healplace/32/59449_2.png) [@healplace](https://devforum.zoom.us/u/healplace)\
**Post date:** [May 16, 2024, 5:36am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511/3 "2024-05-16T05:36:23Z")

</div>

@chunsiong.zoom still i am getting same issue

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/9/d9c251abdc961ebaf7e94eb6b8f7ee213b8ba2ee.png)

---

<div class="post-metadata">

**Author:** ![healplace](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/healplace/32/59449_2.png) [@healplace](https://devforum.zoom.us/u/healplace)\
**Post date:** [May 16, 2024, 5:42am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511/4 "2024-05-16T05:42:24Z")

</div>

can you give me some solution on this

---

<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:** [May 20, 2024, 2:26am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511/5 "2024-05-20T02:26:35Z")

</div>

@healplace I’ll PM you for some details

---

<div class="post-metadata">

**Author:** ![healplace](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/healplace/32/59449_2.png) [@healplace](https://devforum.zoom.us/u/healplace)\
**Post date:** [May 20, 2024, 7:14am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511/6 "2024-05-20T07:14:13Z")

</div>

New Meeting ID - 89817863912  
New signature - eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBLZXkiOiJ4Q1o3b0FiaFQwbTNTRHBPWXVXTDVRIiwiaWF0IjoxNzE2MTg3ODA3LCJleHAiOjE3MTYzNzc4MDcsInRva2VuRXhwIjoxNzE2Mzc3ODA3LCJtbiI6ODk4MTc4NjM5MTIsInJvbGUiOjAsInNka0tleSI6InhDWjdvQWJoVDBtM1NEcE9ZdVdMNVEifQ.1iuXiu9s-37sQknkLdmAzzGQ5eKSNAMo0nyuLzu7oA8

---

<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:** [May 20, 2024, 7:32am UTC](https://devforum.zoom.us/t/invalid-signature-while-join-a-meeting-in-sdk/109511/7 "2024-05-20T07:32:40Z")

</div>

> [@healplace](#):
>
> eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBLZXkiOiJ4Q1o3b0FiaFQwbTNTRHBPWXVXTDVRIiwiaWF0IjoxNzE2MTg3ODA3LCJleHAiOjE3MTYzNzc4MDcsInRva2VuRXhwIjoxNzE2Mzc3ODA3LCJtbiI6ODk4MTc4NjM5MTIsInJvbGUiOjAsInNka0tleSI6InhDWjdvQWJoVDBtM1NEcE9ZdVdMNVEifQ.1iuXiu9s-37sQknkLdmAzzGQ5eKSNAMo0nyuLzu7oA8

@healplace for a start,

the iat and exp cannot be more than 48 hours. Yours has slightly exceeded 48 hours.
