AuthWithJwtToken return error number 6

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, 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:

 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

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