# JWT Token not working in macOS SDK

**URL:** <https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556>\
**Category:** macOS\
**Created:** [June 1, 2021, 7:24pm UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556 "2021-06-01T19:24:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [June 1, 2021, 7:24pm UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556/1 "2021-06-01T19:24:48Z")

</div>

**Description**  
With macOS SDK “Intel-Only” sample application running on Xcode 10, Xcode 10.2.1

1. I am facing crash during launch when I run the app directly immediately after downloading,
2. I created a new Project added all the SDK’s, libraries and project files manually to the new project it shows the Login window first it shows to enter the domain name which I mentioned as “[zoom.us](http://zoom.us)” and then asking for jwt token which I entered from the “App Credentials” Page. On Click of Auth Button it returns “ZoomSDKError\_ServiceFailed” error.

**Which macOS Client SDK version?**  
Knowing the version can help us to identify your issue faster.

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Launch App Enter the Domain name as “[zoom.us](http://zoom.us)”
2. Checked Custom UI check box
3. Click Set Domain Button
4. Enter Jwt token from App Credentials page setting it expiry time to 1 week.
5. Click Auth Button
6. Error “ZoomSDKError\_ServiceFailed” occurs

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- Device: Apple MacBook Pro (16-inch, 2019, 8-Core Intel Core i9)
- OS: macOS Big Sur 11.2.3

**Additional context**  
Let me know if any further details are required from my end.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 2, 2021, 7:30pm UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556/2 "2021-06-02T19:30:59Z")

</div>

Hi @niravd, thanks for using our SDK.

Can you confirm that you are using the sample app included with the SDK? Also, are you using the SDK key/secret? If you use the same credentials used for the REST API, SDK authentication will fail.

Thanks!

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [June 3, 2021, 4:51am UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556/3 "2021-06-03T04:51:00Z")

</div>

Hi @jon.zoom Thank you for replying,  
I am using sample app included with the SDK.

Firstly in this environment

- Device: Apple MacBook Pro (16-inch, 2019, 8-Core Intel Core i9)
- OS: macOS Big Sur 11.2.3
- Xcode 10 and Xcode 10.2.1  
App crashes during launch,  
 ![Screenshot 2021-06-03 at 9.57.07 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/e/dea02cafcc8aa4c26e2eff9e8381542ffc422a28.png)

but I was able to open app with the **ZoomSDKSample\_intel.app** file in the project bundle

> Also, are you using the SDK key/secret?  
> I am using the credentials from app market place
> 
> ![Screenshot 2021-06-03 at 10.06.23 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/3/e3732b08dcbaf9ac2ebe5fc539a4c2c557fc6902.png)

Auth Token I am using is generated like this

 ![Screenshot 2021-06-03 at 10.18.14 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/a/eae721672540f208192e07e9cec45265981f819e.png)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 3, 2021, 5:46pm UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556/4 "2021-06-03T17:46:27Z")

</div>

Hi @niravd,

Thank you for providing the information screenshots. Based on the second screenshot you have provided, you are using the API key/secret. The SDK credentials are going to be under an entirely different app in your marketplace account.

In the screenshot below, the app with the SDK type is the app that you should be selecting to retrieve your credentials.  
 ![Screen Shot 2021-06-03 at 11.44.53 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/1/918c3b86bdc26ea5077f6accbe4a96100e4c4028.png)

Please let me know if you are still running into this issue after using the correct credentials.

Thanks!

---

<div class="post-metadata">

**Author:** ![niravd](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@niravd](https://devforum.zoom.us/u/niravd)\
**Post date:** [June 3, 2021, 6:21pm UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556/5 "2021-06-03T18:21:55Z")

</div>

Thank you for your reply @jon.zoom  
its working for me now.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 3, 2021, 10:16pm UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556/6 "2021-06-03T22:16:06Z")

</div>

Glad to hear it’s working!

---

<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 4, 2021, 8:17am UTC](https://devforum.zoom.us/t/jwt-token-not-working-in-macos-sdk/51556/7 "2021-07-04T08:17:05Z")

</div>

Closed on July 4, 2021, 8:17am UTC

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