# Signature Expired - Video SDK

**URL:** <https://devforum.zoom.us/t/signature-expired-video-sdk/110552>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [May 23, 2024, 12:35pm UTC](https://devforum.zoom.us/t/signature-expired-video-sdk/110552 "2024-05-23T12:35:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![acsinstitute0863](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acsinstitute0863/32/57466_2.png) [@acsinstitute0863](https://devforum.zoom.us/u/acsinstitute0863)\
**Post date:** [May 23, 2024, 12:35pm UTC](https://devforum.zoom.us/t/signature-expired-video-sdk/110552/1 "2024-05-23T12:35:45Z")

</div>

We are getting signature expired error while we are sending request to join an Zoom Meeting. We already integrate the Meetings api and its working fine ie create/update/delete meetings, add/edit/update participants etc. but when we try to join the created meeting with our web application its shown us the SIGNATURE EXPIRED error. We already check the timezone possibilities also but couldn’t found anything. our JWT token is  
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJKU044TldxRFF1bVZUU21sSDJreWl3Iiwic2RrS2V5IjoiSlNOOE5XcURRdW1WVFNtbEgya3lpdyIsIm1uIjo4ODk4Njk3MTM2Miwicm9sZSI6MCwiaWF0IjoxNzE2NDY3NTUyMDAwLCJleHAiOjE3MTY0NzA1ODIwMDAsInRva2VuRXhwIjoxNzE2NDk3NTgyMDAwfQ.8GxLErhZ7FU\_90z3tMCQqUELPVM-1H3pAH7UivoqJ0lz18Go4lnF-tEILKN16inDfjlSG6N5rxFRl46nhhMBuw

---

<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 27, 2024, 11:26pm UTC](https://devforum.zoom.us/t/signature-expired-video-sdk/110552/2 "2024-05-27T23:26:44Z")

</div>

> [@acsinstitute0863](#):
>
> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJKU044TldxRFF1bVZUU21sSDJreWl3Iiwic2RrS2V5IjoiSlNOOE5XcURRdW1WVFNtbEgya3lpdyIsIm1uIjo4ODk4Njk3MTM2Miwicm9sZSI6MCwiaWF0IjoxNzE2NDY3NTUyMDAwLCJleHAiOjE3MTY0NzA1ODIwMDAsInRva2VuRXhwIjoxNzE2NDk3NTgyMDAwfQ.8GxLErhZ7FU\_90z3tMCQqUELPVM-1H3pAH7UivoqJ0lz18Go4lnF-tEILKN16inDfjlSG6N5rxFRl46nhhMBuw

@acsinstitute0863 56362, that is not a valid year

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/4/441f97b70d07346f193ddc7bbbf6cdce0fbebbdb.png)

---

<div class="post-metadata">

**Author:** ![acsinstitute0863](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acsinstitute0863/32/57466_2.png) [@acsinstitute0863](https://devforum.zoom.us/u/acsinstitute0863)\
**Post date:** [May 29, 2024, 12:08pm UTC](https://devforum.zoom.us/t/signature-expired-video-sdk/110552/3 "2024-05-29T12:08:44Z")

</div>

> [@acsinstitute0863](#):
>
> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJKU044TldxRFF1bVZUU21sSDJreWl3Iiwic2RrS2V5IjoiSlNOOE5XcURRdW1WVFNtbEgya3lpdyIsIm1uIjo4ODk4Njk3MTM2Miwicm9sZSI6MCwiaWF0IjoxNzE2NDY3NTUyMDAwLCJleHAiOjE3MTY0NzA1ODIwMDAsInRva2VuRXhwIjoxNzE2NDk3NTgyMDAwfQ.8GxLErhZ7FU\_90z3tMCQqUELPVM-1H3pAH7UivoqJ0lz18Go4lnF-tEILKN16inDfjlSG6N5rxFRl46nhhMBuw

We tried a new signature as per your guidance but it is still showing invalid can you please provide some code stuff for PHP Yii2 as we are using the same. our newly generaeted signature is : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJKU044TldxRFF1bVZUU21sSDJreWl3Iiwic2RrS2V5IjoiSlNOOE5XcURRdW1WVFNtbEgya3lpdyIsIm1uIjoiODE3NTg4NzY1ODciLCJyb2xlIjowLCJpYXQiOjE3MTcwMDM5MTIsImV4cCI6MTcxNzAwNzUxMiwidG9rZW5FeHAiOjE3MTcwMDc1MTJ9.JXkatXFX1vr82vplcJVlh-QE8JZSq8ss7sHTrw2455c

---

<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 31, 2024, 4:46am UTC](https://devforum.zoom.us/t/signature-expired-video-sdk/110552/4 "2024-05-31T04:46:27Z")

</div>

> [@acsinstitute0863](#):
>
> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJKU044TldxRFF1bVZUU21sSDJreWl3Iiwic2RrS2V5IjoiSlNOOE5XcURRdW1WVFNtbEgya3lpdyIsIm1uIjoiODE3NTg4NzY1ODciLCJyb2xlIjowLCJpYXQiOjE3MTcwMDM5MTIsImV4cCI6MTcxNzAwNzUxMiwidG9rZW5FeHAiOjE3MTcwMDc1MTJ9.JXkatXFX1vr82vplcJVlh-QE8JZSq8ss7sHTrw2455c

@acsinstitute0863 for php sample code, I’m doing something like this to generate the Meeting SDK token.

```auto
$config = include 'config.php';
$meetingSDKClientKey = $config['meetingSDKClientKey'];
$meetingSDKClientSecret = $config['meetingSDKClientSecret'];

$iat = time() - 30;
$exp = $iat + 60 * 60 * 10;
//$client_request = $this->request->input('json_decode');

// Define the payload data for your JWT token
$token_payload = [
    'sdkKey' => $meetingSDKClientKey,
    'mn' => 9898533313,
    'role' => 1,
    'iat' => $iat, // Issued at timestamp
    'exp' => $exp, // Expiration timestamp (2 hours from now)
    'appKey' => $meetingSDKClientKey,
    'tokenExp' => $exp 
];

// Encode the JWT token
$header = json_encode(['typ' => 'JWT', 'alg' => 'HS256']);
$payload = json_encode($token_payload);

$headers_encoded = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($header));
$payload_encoded = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($payload));

$signature = hash_hmac('sha256', $headers_encoded . '.' . $payload_encoded, $meetingSDKClientSecret, true);
$signature_encoded = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode($signature));

$jwt = $headers_encoded . '.' . $payload_encoded . '.' . $signature_encoded;

echo $jwt;

```

---

<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:** [June 30, 2024, 2:46pm UTC](https://devforum.zoom.us/t/signature-expired-video-sdk/110552/5 "2024-06-30T14:46:31Z")

</div>

Closed on June 30, 2024, 2:46pm UTC

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