# The signature has expired WEB SDK SAMPLE

**URL:** <https://devforum.zoom.us/t/the-signature-has-expired-web-sdk-sample/24012>\
**Category:** Web\
**Created:** [July 13, 2020, 6:20pm UTC](https://devforum.zoom.us/t/the-signature-has-expired-web-sdk-sample/24012 "2020-07-13T18:20:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![powertiger563](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/powertiger563/32/11841_2.png) [@powertiger563](https://devforum.zoom.us/u/powertiger563)\
**Post date:** [July 13, 2020, 6:20pm UTC](https://devforum.zoom.us/t/the-signature-has-expired-web-sdk-sample/24012/1 "2020-07-13T18:20:45Z")

</div>

When I try to join meeting using sdk web sample (CDN)  
Its Back With

1. errorCode: 3705

2. errorMessage: “The signature has expired.”

3. method: “join”

4. result: “The signature has expired.”

5. status: false  
How Can I Solve It PLease???  
It worked for me in the first time  
But I tried many times after that and it doesn’t work  
I Tried that  
var generation = $.ajax({

// generateSignuture.php

require\_once ‘…/zoom\_config.php’;

meeting\_number = @\_GET[‘meeting\_number’];

function generate\_signature ( $api\_key, $api\_secret, $meeting\_number, $role){

```
$time = time() * 1000 - 30000;//time in milliseconds (or close enough)

$data = base64_encode($api_key . $meeting_number . $time . $role);

$hash = hash_hmac('sha256', $data, $api_secret, true);

$_sig = $api_key . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);

//return signature, url safe base64 encoded

return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');

```

}

echo generate\_signature(API\_KEY,API\_SECRET,$meeting\_number,0);

And It Still Back With the same error.  
And It Causes Many Problems In My Work

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 15, 2020, 11:32pm UTC](https://devforum.zoom.us/t/the-signature-has-expired-web-sdk-sample/24012/2 "2020-07-15T23:32:46Z")

</div>

Hey @powertiger563,

Can you double check your computer time settings:

> [@Join meeting timeout or signature expired](https://devforum.zoom.us/t/join-meeting-timeout-or-signature-expired/8616/14):
>
> Hi @vijayk.kannan, For the signature issue, make sure to use the system time and make sure the time syncs with world time. Generate a signature by ZoomMtg.generateSignature. - Example of syncing your machine time using window 10 [e1b2c451-e93c-4238-b464-ead68f8cca69] Example for using Mac Generate a signature by customer web backend with sync server time. We are currently investigation to see if there is a sync issue on our end as well. We’ll follow up as soon as we’re done lo…

Let me know if that fixes the issue! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:43pm UTC](https://devforum.zoom.us/t/the-signature-has-expired-web-sdk-sample/24012/3 "2020-08-21T22:43:09Z")

</div>

Closed on August 21, 2020, 10:43pm UTC


