# Invalid sdk key error

**URL:** <https://devforum.zoom.us/t/invalid-sdk-key-error/75290>\
**Category:** Web\
**Created:** [September 1, 2022, 8:03pm UTC](https://devforum.zoom.us/t/invalid-sdk-key-error/75290 "2022-09-01T20:03:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [September 3, 2022, 6:12pm UTC](https://devforum.zoom.us/t/invalid-sdk-key-error/75290/2 "2022-09-03T18:12:14Z")

</div>

> var iat = ToTimestamp(DateTime.UtcNow.ToUniversalTime()) - 30000;

iat in milliseconds ??? (30000 ms)

> var exp = iat + 7200;

now you add 2 hours in seconds ??? (7200 seconds)

**SDK JWT Signature:**

there is no c# example yet

but here is a javascript example for generating signature for SDK JWT

[https://marketplace.zoom.us/docs/sdk/native-sdks/auth/](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/)

here another javascript example

> <https://github.com/zoom/meetingsdk-auth-endpoint-sample/blob/master/index.js>

and here a php example

> [@Can't generate correct web sdk signature in Laravel](https://devforum.zoom.us/t/cant-generate-correct-web-sdk-signature-in-laravel/72584/13):
>
> Yes, ofcourse. We were able to generate the working signature using this script: public function generateJWTKey(Request $request) { $key = $this-\>zoom\_api\_key; $secret = $this-\>zoom\_api\_secret; $meeting\_number = $request-\>meetingNumber; $role = $request-\>role; $token = array( "sdkKey" =\> $key, "mn" =\> $meeting\_number, "role" =\> $role, "iat" =\> time(), "exp" =\> time() + 3600, //60 seconds as su…

---

_[View the full topic](https://devforum.zoom.us/t/invalid-sdk-key-error/75290)._
