# SDKAuth() does not trigger authcb

**URL:** <https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574>\
**Category:** Electron\
**Created:** [April 2, 2020, 3:55am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574 "2020-04-02T03:55:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [April 2, 2020, 3:55am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/1 "2020-04-02T03:55:41Z")

</div>

**Description**  
my demo project works perfect, after I integrate other feature, auth callback is never called.

let options={  
authcb: onZoomAuthResult,  
logincb: onZoomLoginResult,  
logoutcb: onZoomLogoutResult  
}  
zoomObjs.sdkInst.GetAuth(options);  
zoomObjs.authObj.SDKAuth(appkey, appsecret);  
after these code, onZoomAuthResult should receive callback. But it’s never.

This issue only on Mac after I integrate other feature. So maybe it has conflict with some library. I want to debug deeply with set ‘enable\_log=true’ in InitSDK(), but I can’t see more log even I set it as true.  
I guess some of other package disables zoom sdk working.

we found the reason is signed zoom files. If I ignore do signature it works well. So please tell me how to deal with this issue on Mac.

**Which version?**  
[v4.6.15088.0210](https://github.com/zoom/zoom-sdk-electron/releases/tag/v4.6.15088.0210)

---

<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:** [April 3, 2020, 6:07am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/2 "2020-04-03T06:07:03Z")

</div>

Hi [guan\_bj](https://devforum.zoom.us/u/guan_bj),

Thanks for the post. You may find the SDK log files in `~/Library/Logs/appName` and if the crash happens, you may find the crash files in `~/Library/Logs/DiagnosticReports/(appName)`.

For mac SDK signing, the suggestions from Bella in this post could be helpful:[Fall back : Mac create cpthost app failed](https://devforum.zoom.us/t/fall-back-mac-create-cpthost-app-failed/10184/11)

Thanks!

---

<div class="post-metadata">

**Author:** ![vinay](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vinay/32/11954_2.png) [@vinay](https://devforum.zoom.us/u/vinay)\
**Post date:** [August 20, 2020, 1:19am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/3 "2020-08-20T01:19:08Z")

</div>

I think I’m seeing this exact same issue – it was working yesterday, but today I don’t see the `authcb` callback. I haven’t enabled or disabled signing at all.

Here’s a log file from a recent run:

---

<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:** [August 20, 2020, 8:20am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/4 "2020-08-20T08:20:32Z")

</div>

Hi @vinay,

Thanks for the reply and the log file. Based on the provided info, it seems like the SDK authentication was successful and everything looks good from the log. Could you elaborate on the issue you are facing? Or you could refer to the implementation in the demo app:[https://github.com/zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron)

Thanks!

---

<div class="post-metadata">

**Author:** ![vinay](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vinay/32/11954_2.png) [@vinay](https://devforum.zoom.us/u/vinay)\
**Post date:** [August 20, 2020, 11:44am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/5 "2020-08-20T11:44:43Z")

</div>

I’m not able to start meetings. Here’s the code I used:

```auto
const ZOOMSDKMOD = require(nodeModDir)
const pos = nodeModDir.lastIndexOf('/')

const zoomSDK = ZOOMSDKMOD.ZoomSDK.getInstance({
  path: nodeModDir.substr(0, pos) + '/../build/Release/',
})
let res = zoomSDK.InitSDK({
  enable_log: true,
  langid: ZoomSDK_LANGUAGE_ID.Language_English,
  locale: ZoomAPPLocale.ZNSDK_App_Locale_Default,
})
console.log('ZOOM INIT SDK', res)
const zoomAuth = zoomSDK.GetAuth({
  authcb: (status: number) => {
    console.log('AUTHCB', status)
  },
})
res = zoomAuth.AuthWithJwtToken(zoomSdkJwt)
const zoomMeeting = zoomSDK.GetMeeting()

console.log('AUTH WITH JWT', res)

const meetingOptions = {
    meetingnum: 10 // used my PMI
    zoomaccesstoken: zoomZakToken, 
    username: 'Place Holder',
  }

  let ret = zoomMeeting.StartMeetingWithOutLogin(meetingOptions)
  console.log('STARTMEETINGWITHOUTLOGIN', ret)

```

Here’s a log from the last run:

```auto
InitSDK 0
ZOOM INIT SDK 0
AUTH WITH JWT 0
STARTMEETINGWITHOUTLOGIN 6

```

Corresponding run to that log (in case the last one was bad):

On tuesday, this worked fine. Yesterday, I started getting `SDKERR_SERVICE_FAILED` from `StartMeetingWithOutLogin`. I found this forum post [Sdkerr\_service\_failed](https://devforum.zoom.us/t/sdkerr-service-failed/3583/2) that seemed related. When I check in my app, my `authcb` callback never runs. I’ve run basically the identical code in the demo application and it works.

---

<div class="post-metadata">

**Author:** ![vinay](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vinay/32/11954_2.png) [@vinay](https://devforum.zoom.us/u/vinay)\
**Post date:** [August 20, 2020, 3:41pm UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/6 "2020-08-20T15:41:44Z")

</div>

I fixed this.

Somehow, `ZoomSDK.framework` got corrupted – all the symlinks were missing. Copying the frameworks back over fixed it.

---

<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:** [August 21, 2020, 3:32am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/7 "2020-08-21T03:32:04Z")

</div>

Hi @vinay,

Thanks for the reply and for the code snippet. Glad to hear that it is working for you now. We have tried to follow the info you provided but we are not able to experience the issue. Do you have any clues that how does the `ZoomSDK.framework` got corrupted?

Thanks!

---

<div class="post-metadata">

**Author:** ![vinay](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vinay/32/11954_2.png) [@vinay](https://devforum.zoom.us/u/vinay)\
**Post date:** [August 21, 2020, 11:49am UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/8 "2020-08-21T11:49:24Z")

</div>

Not yet – I’ll update this post once I figure it out, though!

---

<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:** [August 21, 2020, 8:59pm UTC](https://devforum.zoom.us/t/sdkauth-does-not-trigger-authcb/10574/9 "2020-08-21T20:59:27Z")

</div>

Thanks! Looking forward to hearing from you.
