# How long is the signature valid?

**URL:** <https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440>\
**Category:** Web\
**Created:** [April 7, 2021, 2:08pm UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440 "2021-04-07T14:08:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Videda](https://avatars.discourse-cdn.com/v4/letter/v/bcef8e/32.png) [@Videda](https://devforum.zoom.us/u/Videda)\
**Post date:** [April 7, 2021, 2:08pm UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440/1 "2021-04-07T14:08:19Z")

</div>

Hello

When creating a Web SDK App we have to generate a [signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature).  
How long is this signature valid? Is it possible to set this on generation?

What happens if the signature expires while a participant is still in the meeting?

Thanks  
David

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [April 7, 2021, 2:35pm UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440/2 "2021-04-07T14:35:37Z")

</div>

Hi @Videda,

Signatures expire 24 hours after creation. Since signatures are only used to join/start meetings, there will be no degredation in functionality if a signature expires while the meeting is ongoing, since it will already have been joined.

It isn’t possible to alter how long a signature lasts currently.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 7, 2021, 9:46pm UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440/3 "2021-04-07T21:46:50Z")

</div>

Thank you for your input @alexmayo! Let me know if you have any questions @Videda.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![Videda](https://avatars.discourse-cdn.com/v4/letter/v/bcef8e/32.png) [@Videda](https://devforum.zoom.us/u/Videda)\
**Post date:** [April 8, 2021, 8:46am UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440/4 "2021-04-08T08:46:09Z")

</div>

Hey @alexmayo

Thanks for your quick reply!

> [@alexmayo](#):
>
> Signatures expire 24 hours after creation.

Do you know if there is some documentation on this?

> [@alexmayo](#):
>
> Since signatures are only used to join/start meetings, there will be no degredation in functionality if a signature expires while the meeting is ongoing, since it will already have been joined.

Unfortunately I observed that when a participant is added to a breakout room after his signature has expired, then he gets an error message (pop-up with the message: “The signature has expired.”) and is not able to continue the meeting.  
So this would mean that the signature needs to be valid for the whole duration of the meeting. Is this true?

> [@alexmayo](#):
>
> It isn’t possible to alter how long a signature lasts, however you can control how long JWT tokens last, which can be used to create signatures. See [JWT payload](https://marketplace.zoom.us/docs/sdk/native-sdks/auth#payload).

In the [documentation on generating the signature][1] no JWT is used but instead the API Key and API Secret are used directly. Is there also a possibility to use a JWT to create a signature?

In the example code in the [documentation][1] the timestamp is created as follows

```javascript
// Prevent time sync issue between client signature generation and zoom 
const timestamp = new Date().getTime() - 30000

```

So is it valid to just shift the timestamp further back to reduce it’s lifetime?  
E.g. to obtain a signature that expires in 4h use:

```javascript
const timestamp = new Date().getTime() - (20 * 60 * 60 *1000)

```

Thanks  
David

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [April 8, 2021, 9:05am UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440/5 "2021-04-08T09:05:06Z")

</div>

Hi @Videda!

> [@Videda](#):
>
> > [@alexmayo](#):
> >
> > Signatures expire 24 hours after creation.
> 
> Do you know if there is some documentation on this?

It’s not written in the documentation however @tommy did mention this a while ago on this forum. It’s probably worth adding it to the docs, as it is useful to know. See: [ZoomMtg.join() returns “The signature has expired.” help me please - #28 by tommy](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/28)

Maybe create a post in #Feature Requests if you think adjusting the signature TTL is required 🙂

> [@Videda](#):
>
> Unfortunately I observed that when a participant is added to a breakout room after his signature has expired, then he gets an error message (pop-up with the message: “The signature has expired.”) and is not able to continue the meeting.  
> So this would mean that the signature needs to be valid for the whole duration of the meeting. Is this true?

Ah right yes, since the breakout room is effectively a new meeting, the signature will still need to be valid for breakout rooms to work. Other meeting functionality should remain working though, such as video, audio and screen share.

> [@Videda](#):
>
> In the [documentation on generating the signature][1] no JWT is used but instead the API Key and API Secret are used directly. Is there also a possibility to use a JWT to create a signature?

Apologies I mis-spoke here. You use the JWT Key and Secret to create the signature, not the token itself.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 8, 2021, 11:36pm UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440/6 "2021-04-08T23:36:41Z")

</div>

Thank you again for your input here @alexmayo!

Max

---

<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:** [May 9, 2021, 9:37am UTC](https://devforum.zoom.us/t/how-long-is-the-signature-valid/47440/7 "2021-05-09T09:37:18Z")

</div>

Closed on May 9, 2021, 9:37am UTC

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