# Sdk jwt token fail

**URL:** <https://devforum.zoom.us/t/sdk-jwt-token-fail/25422>\
**Category:** Windows\
**Created:** [July 28, 2020, 7:00am UTC](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422 "2020-07-28T07:00:10Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 15, 2020, 12:54am UTC](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422/21 "2020-08-15T00:54:38Z")

</div>

Hi @collinpark,

Thanks for the info. Based on the payload, please try to limit the `exp` and the `tokenExp` to be at most 2 days from the `iat` time. Please have a try. Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 15, 2020, 12:57am UTC](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422/22 "2020-08-15T00:57:46Z")

</div>

Hi @username234234234,

Thanks for the info. It seems like you are using API key/secret instead of SDK key/secret to generate the JWT token. Please refer to the instruction here: [https://github.com/zoom/zoom-sdk-windows/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token](https://github.com/zoom/zoom-sdk-windows/blob/master/CHANGELOG.md#new-sdk-initialization-method-using-jwt-token) and use SDK key/secret to generate the token.

Thanks!

---

<div class="post-metadata">

**Author:** ![kappanybarta](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@kappanybarta](https://devforum.zoom.us/u/kappanybarta)\
**Post date:** [October 15, 2020, 9:33am UTC](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422/25 "2020-10-15T09:33:00Z")

</div>

I know this post is about windows sdk  
but I saw this python repo today and it helped me with JWT generation

> **[Snapworks/ZoomSDKJWTGenerator](https://github.com/Snapworks/ZoomSDKJWTGenerator)**
>
> Generate Zoom JWT for Zoom Android SDK,Zoom iOS SDK, Zoom Mac SDK, Zoom Windows SDK, Zoom Windows SDK (C# Wrapper), Zoom Electron SDK, Zoom SDK Ionic, Zoom SDK Cordova Plugin - Snapworks/ZoomSDKJWT...

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [October 17, 2020, 2:19am UTC](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422/26 "2020-10-17T02:19:49Z")

</div>

Thanks for sharing this!

---

<div class="post-metadata">

**Author:** ![pious83](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pious83/32/26024_2.png) [@pious83](https://devforum.zoom.us/u/pious83)\
**Post date:** [April 19, 2021, 2:04am UTC](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422/27 "2021-04-19T02:04:55Z")

</div>

What fixed it for me is change the gmt to local time zone on the epoch converter

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 19, 2021, 10:31pm UTC](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422/28 "2021-04-19T22:31:23Z")

</div>

Thanks for sharing this @pious83!  
I am happy to hear you got it working 🙂

Thanks!  
Michael

[Previous page](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422.md?page=1)
