# AuthWithJwtToken return error number 6

**URL:** <https://devforum.zoom.us/t/authwithjwttoken-return-error-number-6/52265>\
**Category:** Electron\
**Created:** [June 11, 2021, 12:36pm UTC](https://devforum.zoom.us/t/authwithjwttoken-return-error-number-6/52265 "2021-06-11T12:36:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theoyoga](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/theoyoga/32/28160_2.png) [@theoyoga](https://devforum.zoom.us/u/theoyoga)\
**Post date:** [June 11, 2021, 12:36pm UTC](https://devforum.zoom.us/t/authwithjwttoken-return-error-number-6/52265/1 "2021-06-11T12:36:26Z")

</div>

**Description**  
Failure to authenticate via JWT token with ZoomErrorCode 6 (Internal Service Error)

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

**To Reproduce(If applicable)**  
I generated JWT token using [jwt.io](http://jwt.io), which returns 0 (success) during calling AuthWithJwtToken() when using given demo app from Zoom. However, when using the same JWT on my own Electron app, it returns 6 and still couldn’t figure out what is wrong. I already checked the expiry time and it is still valid (I put 3 hours as the expiry time).  
I have seen a lot of number 5 error but nothing about number 6 error. I think the docs can be clearer than this.

Example code:

```auto
 const opts = {
      path: '',
      domain: 'https://zoom.us',
      enable_log: true,
      langid: 1,
      locale: 0,
      logfilesize: 5
   }

 const identifierOpt = {
    identifier: 'test@gmail.com'
 }

 const retId = this.zoomSDK.SetTeamIdentifier(identifierOpt);
 const ret = this.zoomSDK.InitSDK(opts);

  if (ZoomSDKError.SDKERR_SUCCESS == ret) {
    const options = {
      authcb: this.sdkauthCB,
      logincb: this.loginretCB,
      logoutcb: null
    };
    this.zoomAuth = this.zoomSDK.GetAuth(options);
    const token = "JWT here";
    const retZoomAuth = this.zoomAuth.AuthWithJwtToken(token.replace(/^\s+|\s+$/g, ''));
    // retZoomAuth returns 6
  }

```

Any help would be appreciated.  
Thank you

**Screenshots**  
No screenshots

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

- Device: Apple Macbook Pro 16”, Intel i7
- OS: MacOS Big Sur 11.4

---

<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:** [July 11, 2021, 10:36pm UTC](https://devforum.zoom.us/t/authwithjwttoken-return-error-number-6/52265/2 "2021-07-11T22:36:50Z")

</div>

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