# GetAuthResult Auth Unknown error

**URL:** <https://devforum.zoom.us/t/getauthresult-auth-unknown-error/35354>\
**Category:** Electron\
**Created:** [November 7, 2020, 8:11am UTC](https://devforum.zoom.us/t/getauthresult-auth-unknown-error/35354 "2020-11-07T08:11:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mamaev-ali](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mamaev-ali](https://devforum.zoom.us/u/mamaev-ali)\
**Post date:** [November 7, 2020, 8:11am UTC](https://devforum.zoom.us/t/getauthresult-auth-unknown-error/35354/1 "2020-11-07T08:11:43Z")

</div>

**Description**  
onAuthenticationReturn returns AUTHRET\_UNKNOWN: 5, // Auth Unknown error after  
AuthWithJwtToken(jwt) which return AUTHRET\_SUCCESS 0

```
const { ZoomSDK } = require('../../lib/zoom_sdk.js');
const jsonwebtoken = require('jsonwebtoken');
const payload = {
    app_key: 'SDKKey',
    version: 1,
    iat: Math.round(new Date().getTime() / 1000),
    exp: Math.round((new Date().getTime() + 1 * 24 * 60 * 60 * 1000) / 1000),
    tokenExp: Math.round((new Date().getTime() + 1 * 12 * 60 * 60 * 1000) / 1000),
 };

 const jwt = jsonwebtoken.sign(payload, 'SDKSecret');

const initoptions: { [key: string]: any } = {
  ostype: ZOOM_TYPE_OS_TYPE.MAC_OS,
  threadsafemode: 0,
  webdomain: 'https://www.zoom.us',
  domain: 'https://www.zoom.us',
};
initoptions.path =
  platform == 'darwin' ? '../../sdk/mac/' : arch == 'x64' ? '../../sdk/win64/' : '../../sdk/win32/';

if (platform == 'darwin' && nativeTheme) {
  nativeTheme.themeSource = 'light';
}

const zoomsdk = ZoomSDK.getInstance(initoptions);
zoomsdk.InitSDK();
const zoomauth = zoomsdk.GetAuth({
  authcb: sdkauthCB,
  logincb: loginretCB,
  logoutcb: null,
});
const jwtresult = zoomauth.AuthWithJwtToken(jwt); // 0

function sdkauthCB(status: any) {
  console.log('sdk auth cb ', status); // sdk auth cb 5

  console.log('get auth result ', zoomauth.GetAuthResult()); // get auth result 5
  console.log('get login status ', zoomauth.GetLoginStatus()); // get login status 0
}

```

Example of generated jwt eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5IjoiU0RLS2V5IiwidmVyc2lvbiI6MSwiaWF0IjoxNjA0NzM2NDE4LCJleHAiOjE2MDQ4MjI4MTgsInRva2VuRXhwIjoxNjA0Nzc5NjE4fQ.Dps2uYcnwu\_YeTBFifaUr338vYeumQg4bj-XgyDtcNE - app\_key changed to SDKKey

**Which version?**  
“electron”: “10.1.5”,

- macOS 10.15

**Additional context**  
I was trying to auth via SDKAuth, but nothing changes.  
Also there are many messages in console like this  
objc[82076]: Class ZPLogHelperNull is implemented in both \_\_dirname/medcart\_securevideo/node\_modules/electron/dist/Electron.app/Contents/Frameworks/ZoomSDKChatUI.framework/Versions/A/ZoomSDKChatUI (0x11a1752e8) and \_\_dirname/medcart\_securevideo/node\_modules/electron/dist/Electron.app/Contents/Frameworks/zChatApp.bundle/Contents/MacOS/zChatApp (0x11bb979f0). One of the two will be used. Which one is undefined.

---

<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:** [November 14, 2020, 2:21am UTC](https://devforum.zoom.us/t/getauthresult-auth-unknown-error/35354/2 "2020-11-14T02:21:27Z")

</div>

Hi @mamaev-ali,

Thanks for the post and sorry to hear that you are facing such an issue. Could you enable the log feature and provide the SDK log for us to further investigate?

You may enable the log feature when setting the web domain:

```auto
setDomain: function(domain, enable_log)

```

And you may find the SDK log(.log) file in the following location:

- `~/Library/Logs/DiagnosticReports/(appName)`

Thank you.
