# Demo Electron App doesn't run (blocked on JWT)

**URL:** <https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924>\
**Category:** Electron\
**Created:** [October 21, 2020, 2:58pm UTC](https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924 "2020-10-21T14:58:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yongxing](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yongxing/32/17462_2.png) [@yongxing](https://devforum.zoom.us/u/yongxing)\
**Post date:** [October 21, 2020, 2:58pm UTC](https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924/1 "2020-10-21T14:58:41Z")

</div>

**Description**  
A clear and concise description of what the question is.  
I cannot get past the step in the demo app of inputting JWT token

**Which version?**  
Knowing the version can help us to identify your issue faster.  
latest zoom-sdk-electron

**To Reproduce(If applicable)**  
git clone zoom-sdk-electron  
cd zoom-sdk-electron  
sudo n -\> change node to node/12.16.1  
npm install --save-dev electron@8.2.4 -g  
npm install node-gyp -g  
npm install bindings -g  
sh build\_nodeaddon\_mac.sh  
sh run\_demo\_mac.sh

Click: “Start Demo”  
Console log show: “Error: Send error, 60 Operation timed out  
Error: Send error, 60 Operation timed out  
Error: Send error, 60 Operation timed out”

Put in my JWT from [https://marketplace.zoom.us/develop/apps](https://marketplace.zoom.us/develop/apps) (I also made sure it didn’t expire)  
Click and briefly looks like Zoom is processing the JWT, but then it goes back to the same page asking for JWT.

If I add a console.log() at line 599 in main.js in the Demo app, then the return is 0  
“{ ret: 0 }”

_Additionally, when I tried to use AuthSDK instead, and put in my API\_KEY and API\_SECRET, while the initial SDKAuth() returns properly, the onAuth() callback I get error 2: AUTHRET\_KEYORSECRETWRONG_

Thank you!!!

**Screenshots**  
Here’s a video: [https://www.dropbox.com/s/9owlbffghn7q69d/zoom\_0.mp4?dl=0](https://www.dropbox.com/s/9owlbffghn7q69d/zoom_0.mp4?dl=0)

**Device (please complete the following information):**

- Device Spec: Mac
- OS: macOS
- Version 10.15.7

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![evandy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evandy/32/17485_2.png) [@evandy](https://devforum.zoom.us/u/evandy)\
**Post date:** [October 21, 2020, 6:21pm UTC](https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924/3 "2020-10-21T18:21:12Z")

</div>

@yongxing not sure if this will help you, but I was experiencing the same issue and the following helped me figure it out.

Firstly, I was formatting the token payload incorrectly. I ended up using the same value for the exp and tokenExp. Here is an example of the JWT payload

```auto
 Please try to place a timestamp in the field “tokenExp” instead of a number, such as:

{
“appKey”: “<my_app_key>”,
“iat”: 1586841706,
“exp”: 1586928106,
"tokenExp": 1586928106
}

```

I was also using the JWT app type key/secret instead of using the SDK app type key/secret in the marketplace.

 ![Screen Shot 2020-10-21 at 11.18.45 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/c/6cc917b2be274f62f375ce2488ee93f32d79810a.png)

Hope that helps

---

<div class="post-metadata">

**Author:** ![yongxing](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yongxing/32/17462_2.png) [@yongxing](https://devforum.zoom.us/u/yongxing)\
**Post date:** [October 21, 2020, 6:57pm UTC](https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924/4 "2020-10-21T18:57:20Z")

</div>

Will try this out! Thank you @evandy

---

<div class="post-metadata">

**Author:** ![yongxing](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yongxing/32/17462_2.png) [@yongxing](https://devforum.zoom.us/u/yongxing)\
**Post date:** [October 21, 2020, 10:07pm UTC](https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924/5 "2020-10-21T22:07:43Z")

</div>

it works! thank you! onto the next challenge 🙂

---

<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 24, 2020, 8:04am UTC](https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924/6 "2020-10-24T08:04:29Z")

</div>

Hi @evandy,

Thank you very much for helping out! 🙂

---

<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 24, 2020, 8:05am UTC](https://devforum.zoom.us/t/demo-electron-app-doesnt-run-blocked-on-jwt/33924/7 "2020-10-24T08:05:29Z")

</div>

Hi @yongxing,

Glad to hear it is working for you now. If you need a further reference, you may find the instruction here: [https://github.com/zoom/zoom-sdk-electron#initializing-sdk-with-jwt-token](https://github.com/zoom/zoom-sdk-electron#initializing-sdk-with-jwt-token)

Thanks!
