# AuthWithJwtToken return ret 5

**URL:** <https://devforum.zoom.us/t/authwithjwttoken-return-ret-5/50194>\
**Category:** Electron\
**Created:** [May 13, 2021, 8:52am UTC](https://devforum.zoom.us/t/authwithjwttoken-return-ret-5/50194 "2021-05-13T08:52:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjh22343](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hjh22343/32/1749_2.png) [@hjh22343](https://devforum.zoom.us/u/hjh22343)\
**Post date:** [May 13, 2021, 8:52am UTC](https://devforum.zoom.us/t/authwithjwttoken-return-ret-5/50194/1 "2021-05-13T08:52:15Z")

</div>

**Description**  
hey guys, I’m working on Mac M1 has show some problems with electron’sdk

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/1/813f44a1a65ffb60aae2b6e5f804d826102a3051.png)

So I find the electron new version has some fix about this,  
I’m testing on this sdk demo

I generate JWT as this

> ```
> {
> "alg": "HS256",
> "typ": "JWT"
> }
> {
> "appKey": "xxxx", //my sdk appkey
> "iat": 1621499734,
> "exp": 1620981496,
> "tokenExp": 158692816
> }
> HMACSHA256(
> base64UrlEncode(header) + "." +
> base64UrlEncode(payload),
> my Secret
> )
> 
> ```

but I console.log(ret) it returns 5

**Which Electron Client SDK version?**  
v5.5.12511.0422

Base SDK versions:  
win32 native sdk version:zoom-sdk.5.5.12511.0422\_x86  
mac native sdk version:All\_mac\_sdk\_5.5.12511.0420\_universal

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. download sdk.zip
2. npm i
3. sh run\_demo\_mac.sh
4. input generate jwt

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

- Device: MPB
- OS: macOS Big Sur 11.3.1

---

<div class="post-metadata">

**Author:** ![hjh22343](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hjh22343/32/1749_2.png) [@hjh22343](https://devforum.zoom.us/u/hjh22343)\
**Post date:** [May 13, 2021, 9:02am UTC](https://devforum.zoom.us/t/authwithjwttoken-return-ret-5/50194/2 "2021-05-13T09:02:14Z")

</div>

sorry about my mistake  
I miss tokenExp  
so I modify this to 1620981496  
so return ret is 0  
but as some seconds showwaitwindows it also show input jwt

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/6/c69e593895e18f0276dbcfeb4a537aae609ac54f.png)

---

<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 12, 2021, 7:02pm UTC](https://devforum.zoom.us/t/authwithjwttoken-return-ret-5/50194/3 "2021-06-12T19:02:59Z")

</div>

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