# Why does "zoomauth.SDKAuth (appkey, appsecret)" return a status code of 6? The code is the same as the demo

**URL:** <https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498>\
**Category:** Electron\
**Created:** [March 10, 2020, 1:56am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498 "2020-03-10T01:56:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![1223229224](https://avatars.discourse-cdn.com/v4/letter/1/cab0a1/32.png) [@1223229224](https://devforum.zoom.us/u/1223229224)\
**Post date:** [March 10, 2020, 1:56am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/1 "2020-03-10T01:56:54Z")

</div>

**Description**  
The electron demo runs successfully, and the code implementation logic is the same, but the “zoomauth.SDKAuth (appkey, appsecret)” in the project returned the status code: 6. Why is that…

**Which version?**  
macos  
v4.6.15094.0218

Base SDK versions:  
Win32 native SDK version: zoom-sdk.4.6.15074.0203  
Mac native SDK version: All\_mac\_sdk\_4.6.15094.0218

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [March 10, 2020, 5:50am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/2 "2020-03-10T05:50:54Z")

</div>

1.What is the MAC OS version?  
2.Make sure you had called “initSDK” before called “SDKAuth”.  
3.You can send us log to do reseach.

---

<div class="post-metadata">

**Author:** ![1223229224](https://avatars.discourse-cdn.com/v4/letter/1/cab0a1/32.png) [@1223229224](https://devforum.zoom.us/u/1223229224)\
**Post date:** [March 10, 2020, 6:29am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/3 "2020-03-10T06:29:38Z")

</div>

hi

1. macOS version is 10.15.3
2. It was determined that “initSDK” was executed before “SDKAuth” was executed, and the return status code is 0, which looks normal.

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [March 10, 2020, 6:44am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/4 "2020-03-10T06:44:38Z")

</div>

Hi  
1.Please check the path “(appName)/Contents/Frameworks/”, whether contain ZoomSDK file.  
2.Please send us log (~/Library/Logs/(appName)).

---

<div class="post-metadata">

**Author:** ![1223229224](https://avatars.discourse-cdn.com/v4/letter/1/cab0a1/32.png) [@1223229224](https://devforum.zoom.us/u/1223229224)\
**Post date:** [March 10, 2020, 7:07am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/5 "2020-03-10T07:07:20Z")

</div>

hi，this is the run log

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/5dedb7dd3d8eac2fc5b9c486003396356c350dd9.png)

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [March 10, 2020, 7:23am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/6 "2020-03-10T07:23:41Z")

</div>

hi  
Not this log.The log Path is ~/Library/Logs/(appName) .  
you need set enable\_log to YES.

 ![Screenshot2020_03_10_152302](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/be7e0fdeabe7ac04791e94576d6c2891552c47b2.jpeg)

---

<div class="post-metadata">

**Author:** ![1223229224](https://avatars.discourse-cdn.com/v4/letter/1/cab0a1/32.png) [@1223229224](https://devforum.zoom.us/u/1223229224)\
**Post date:** [March 10, 2020, 7:26am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/7 "2020-03-10T07:26:35Z")

</div>

hi  
I have set enable\_log to true.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/aebcb30a8cc3fb6805154f33534698a50729c094.jpeg)

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [March 10, 2020, 7:52am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/8 "2020-03-10T07:52:06Z")

</div>

The path is wrong.

 ![Screenshot2020_03_10_154942](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/4bca0976fd3ee2cade057843ed1cbb514a385e55.jpeg)  
You can refer to the demo.

---

<div class="post-metadata">

**Author:** ![1223229224](https://avatars.discourse-cdn.com/v4/letter/1/cab0a1/32.png) [@1223229224](https://devforum.zoom.us/u/1223229224)\
**Post date:** [March 10, 2020, 7:54am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/9 "2020-03-10T07:54:54Z")

</div>

So why does “initSDK” succeed?

---

<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:** [March 13, 2020, 2:08am UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/10 "2020-03-13T02:08:24Z")

</div>

Hi [1223229224](https://devforum.zoom.us/u/1223229224),

Thanks for the reply. The initSDK might not reflect the root cause of the issue. As Bella mentioned above, the path seems not correctly configured. Please refer to our demo app and have a try to see if it helps.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:30pm UTC](https://devforum.zoom.us/t/why-does-zoomauth-sdkauth-appkey-appsecret-return-a-status-code-of-6-the-code-is-the-same-as-the-demo/8498/11 "2020-08-21T19:30:07Z")

</div>

Closed on August 21, 2020, 7:30pm UTC


