# "auth sdk failed" when running zoom sdk demo

**URL:** <https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448>\
**Category:** Windows\
**Created:** [December 2, 2020, 4:55pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448 "2020-12-02T16:55:59Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiyevin101](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kiyevin101](https://devforum.zoom.us/u/kiyevin101)\
**Post date:** [December 2, 2020, 4:56pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/1 "2020-12-02T16:56:00Z")

</div>

**Description**  
I follow the instructions here [https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/build-run-play](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/build-run-play)

When running the zoom sdk demo, I always get “auth sdk failed”.

**Which version?**  
latest version download from zoom github

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

1. compile zoom sdk demo
2. start sdk\_demo\_v2.exe  
 ![Snap 2020-12-02 at 11.47.49](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/3/a3fcd565d452fb2104fec6c647168c626b920678.png)
3. I am not sure what to input here, so I click “setdomain” directly
4. I already create an JWT app from maketplace, so I paste its JWT token to it.
5. click auth  
get “auth sdk failed”.

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

- OS: Windows 10

**other info**  
The zoom sdk guide said after click SetDomain, the next step will " Then in the following screen, you will be asked to enter your **SDK keys & secrets**.". But in my test, it ask me to input “sdk JWT token”. I don’t know why.

---

<div class="post-metadata">

**Author:** ![nertht](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nertht/32/19627_2.png) [@nertht](https://devforum.zoom.us/u/nertht)\
**Post date:** [December 2, 2020, 11:16pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/2 "2020-12-02T23:16:40Z")

</div>

Sdk version: (version: v5.2.42037.1112)  
OS: Win 10  
I created jwt app on marketplace. Generate jwt token and use it in sdk app runned from code. And result was the same as described before (error message “auth sdk failed”). I tried to create sdk app as well and generate jwt token on [jwt.io](http://jwt.io) with settings:  
{  
“appKey”: “xxxxxxxxxxxxxxxxxxxxxx”,  
“iat”: 1609913345,  
“exp”: 1609993345, (less than 2 days after iat)  
“tokenExp”: 1609999345 (more than 1/2 hour after exp)  
}  
But same result (message “auth sdk failed”).

---

<div class="post-metadata">

**Author:** ![kenji.terasaka](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@kenji.terasaka](https://devforum.zoom.us/u/kenji.terasaka)\
**Post date:** [December 3, 2020, 2:54am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/3 "2020-12-03T02:54:32Z")

</div>

I have successfully authenticated.  
(Version:v5.2.41727.0928)  
OS:Windows10  
IDE:VisualStudio2017

I think the following topics will be helpful.

> **[GitHub - zoom/zoom-sdk-windows: Zoom Windows SDK](https://github.com/zoom/zoom-sdk-windows#installing)**
>
> Zoom Windows SDK. Contribute to zoom/zoom-sdk-windows development by creating an account on GitHub.

> [@Sdk jwt token fail](https://devforum.zoom.us/t/sdk-jwt-token-fail/25422):
>
> Description A clear and concise description of what the question is. Which version? Knowing the version can help us to identify your issue faster. To Reproduce(If applicable) Steps to reproduce the behavior: Go to ‘…’ Click on ‘…’ Scroll down to ‘…’ See error Screenshots If applicable, add screenshots to help explain your problem. Smartphone (please complete the following information): Device: [e.g. iPhone6] OS: [e.g. iOS8.1] Version [e.g. 22] Additional context Add any other conte…

---

<div class="post-metadata">

**Author:** ![nertht](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nertht/32/19627_2.png) [@nertht](https://devforum.zoom.us/u/nertht)\
**Post date:** [December 3, 2020, 6:30pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/4 "2020-12-03T18:30:15Z")

</div>

I solved my question. My “iat” was pointing to future. And iat is in short the timestamp symbolized time of token creation. It should not point to the future.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 4, 2021, 9:31pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/5 "2021-01-04T21:31:24Z")

</div>

Hey @kiyevin101,

Thank you for using the dev forum!

The default placeholder text “[https://zoom.us](https://zoom.us)” should work for the domain on the screen in your screenshot. This is just to specify what network domain you would like to use. For example, if you were in the UK you could do “[https://zoom.uk](https://zoom.uk)” so that you connect to servers closer to you.

For the JWT issue: Are you pasting the JWT directly from the JWT tile of the Zoom Marketplace? If so, this will cause the error. The JWT provided in the JWT tile is for the Zoom API, not the SDK’s. To authenticate the SDK, you have to make a JWT out of your SDK Key and SDK Secret.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![it.it](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@it.it](https://devforum.zoom.us/u/it.it)\
**Post date:** [January 10, 2021, 9:10am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/6 "2021-01-10T09:10:10Z")

</div>

Hi.

No matter what I tried on [http://jwt.io/](http://jwt.io/) - it always fail with “Auth SDK failed”.  
can you please provide a step by step instructions on how to generate the correct token?

thanks

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 16, 2021, 3:56am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/7 "2021-01-16T03:56:59Z")

</div>

Hey @it.it,

Thanks for using the developer forum!

To get a sample JWT for using the SDK, you can do the following:

1. Log into Zoom Marketplace
2. Click the “Build App” button in the top left corner
3. Click the “View Here” button in the “SDK” tile
4. You should now see your SDK key and SDK secret
5. Go to [https://jwt.io/](https://jwt.io/) and scroll down until you see this page:  
 ![Screen Shot 2021-01-15 at 8.18.08 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/3/131c5509b53afbbc09f7c0a33fd32ad1df1e0bce.png)
6. Replace the payload in the right hand side with this payload:

> {  
> “appKey”: “string”,  
> “iat”: 0,  
> “exp”: 0,  
> “tokenExp”: 0  
> }

1. Copy your SDK _Key_ from the Zoom Marketplace (in this example, I will use 1234ABC for the key) and paste it inside the quotes where it says _string_, next to _appKey_ in the payload.
2. Go to [https://www.epochconverter.com/](https://www.epochconverter.com/)
3. And you will see the current time in epoch format here:  
 ![Screen Shot 2021-01-15 at 8.25.42 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/7/b7cdedc242459186375eed122020ce919650a7c2.png)
4. Copy that value and place it where the _0_ is next to _iat_ in the jwt payload
5. Now on epoch [converter.com](http://converter.com), set the date 1 day in the future, as I am writing this it is the 16th so I will set this to be the 17th
6. Click “Human date to Timestamp” and copy the value here:  
 ![Screen Shot 2021-01-15 at 8.30.50 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/6/661c1395e3107b0e00b261bb9b55227d177e3232.png)
7. Paste this to replace the _0_ next to both _exp_ and _tokenExp_ in the payload. (These don’t have to be the same value, and they also don’t have to be a date 1 day from now, this is just for example):
8. So now your payload should look like this:  
 ![Screen Shot 2021-01-15 at 8.37.09 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/5/15fecfc438772624e22c7f46e031518b2fbd8e30.png)
9. You can hover over these numbers and it should show you the date in readable format:  
 ![Screen Shot 2021-01-15 at 8.39.12 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/1/81eae8968385e02c53055dfa7b78db8f63b9f68c.png)
10. Now copy your SDK _Secret_ from the Zoom Marketplace and paste it into the box that says “your 256 bit secret”. Leave “secret base64 encoded” _unchecked_:  
 ![Screen Shot 2021-01-15 at 8.42.18 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/b/9bd782bf8d0dad53874370b317db1b5948d8999c.png)
11. For this example I am going to use 5678DEF for my sdk secret. Your screen should now look like this:  
 ![Screen Shot 2021-01-15 at 8.44.01 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/2/e2a7feb1822ca259fe8b7d54ffae755f76ec047e.png)
12. Your JWT is the text that is on the left under “Encoded”. Copy this directly, do not click the “Share JWT” button:  
 ![Screen Shot 2021-01-15 at 8.46.10 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/d/edfa0757fce3bf003cdad3cd6aab688ded3eca37.png)
13. Paste this text directly into the demo app box when it asks you to auth.

Please let me know if that works.  
Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![it.it](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@it.it](https://devforum.zoom.us/u/it.it)\
**Post date:** [January 16, 2021, 5:13pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/8 "2021-01-16T17:13:21Z")

</div>

Hi Michael

thanks for the very detailed answer!

1. I did manage to get a valid JWT token - thanks, but alas - the demo app is still throwing the next error (empty error description):

> Error Type: LastErrorType\_Meeting  
> Error Code: 0  
> Error Description:

1. for other readers - please notice that the quotation marks in the payload are wrong - you’ll need to use the _regular/neutral_ quotation marks instead of the _curved/typographic_ quotation marks  
more details about the difference are here - [How & When to Use Quotation Marks | Study.com](https://study.com/academy/lesson/how-when-to-use-quotation-marks.html).

seems like this forum is preventing us from using the _regular/neutral_ one. kind of weird for a technical forum 🙂

thanks again!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 19, 2021, 8:22pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/9 "2021-01-19T20:22:45Z")

</div>

Hey @it.it,

Awesome! I am happy to hear it helps, and yes it is a bummer the forum changes the quotes ☹.  
As for your error, the error code 0 actually means “No error”.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![soluzione.ltda](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@soluzione.ltda](https://devforum.zoom.us/u/soluzione.ltda)\
**Post date:** [February 25, 2021, 4:53pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/10 "2021-02-25T16:53:11Z")

</div>

> [@kiyevin101](#):
>
> en in the following screen, you will be asked to enter your **SDK keys & secrets**.". But in my test, it ask me to input “sdk JWT token”. I don’t know why.

Hello Michael,  
Is that a change you´ve made in the demo where instead of App Key // App Secret screen, you´ve changed to JWT screen to authenticate the SDK ?

Because I´m having the same behavior, in your guide it says after domain screen, I should inform App Key // App Secret on the screen, but I´m getting the JWT screen instead.

Is the guide outdated? The way now is to create manually a JWT and authenticate?  
Or there is a way to get the _SDK keys & secrets_ screen and use it instead ?  
[https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/build-run-play](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/build-run-play)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 25, 2021, 9:13pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/11 "2021-02-25T21:13:27Z")

</div>

Hey @soluzione.ltda,

Thanks for using the dev forum!

Yes, that guide is outdated unfortunately. We will work to get that updated as soon as possible.  
The behavior of the demo app has changed since then. Despite recommending developers to use JWT’s instead of SDK key’s and secrets, many developers would use key’s and secrets which introduces security vulnerabilities. We do not encourage developers to authenticate the SDK using a key and secret anymore. The demo applications have been updated to reflect this ongoing security effort. If you run into issues creating a JWT, please let me know and I can assist there 🙂

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vary](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vary/32/30924_2.png) [@vary](https://devforum.zoom.us/u/vary)\
**Post date:** [September 10, 2021, 9:37am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/12 "2021-09-10T09:37:30Z")

</div>

hi @Michael_Condon  
I refer to [App Marketplace](https://marketplace.zoom.us/develop/apps/f5a1wH5HQYSpbXEmQzi57Q/download) link and download latest version Windows zoom sdk(zoom-sdk-windows-5.7.1.644). then generating JWT by [https://zoomdevelopersupport.zendesk.com/hc/en-us/articles/360056168291-How-to-create-a-sample-JWT-for-the-Client-SDK](https://zoomdevelopersupport.zendesk.com/hc/en-us/articles/360056168291-How-to-create-a-sample-JWT-for-the-Client-SDK). but click Auth toast Auth failed! how can i to fix it?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 13, 2021, 9:50pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/13 "2021-09-13T21:50:52Z")

</div>

Hey @vary,

Thanks for using the dev forum!

What SDKErrors are you seeing when you try to auth?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vary](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vary/32/30924_2.png) [@vary](https://devforum.zoom.us/u/vary)\
**Post date:** [September 14, 2021, 3:01am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/14 "2021-09-14T03:01:21Z")

</div>

any sdkerrors info find。only toast auth sdk falied like picture

---

<div class="post-metadata">

**Author:** ![vary](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vary/32/30924_2.png) [@vary](https://devforum.zoom.us/u/vary)\
**Post date:** [September 14, 2021, 3:08am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/16 "2021-09-14T03:08:44Z")

</div>

@Michael_Condon  
run android zoom sdk（zoom-sdk-android-5.7.1.1267） show below info  
2038-01-17 02:53:47.777 23317-23317/us.zoom.sdkexample W/AndroidKeysetManager: keyset not found, will generate a new one  
java.io.FileNotFoundException: can’t read keyset; the pref value **androidx\_security\_crypto\_encrypted\_prefs\_key\_keyset** does not exist  
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readPref(SharedPrefKeysetReader.java:71)  
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readEncrypted(SharedPrefKeysetReader.java:89)  
at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:105)  
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.read(AndroidKeysetManager.java:311)  
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewKeyset(AndroidKeysetManager.java:287)  
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:238)  
at com.zipow.videobox.util.ZMEncryptedSharedPreferences.a(ZMEncryptedSharedPreferences.java:1169)  
at com.zipow.videobox.util.PreferenceUtil.getSharedPreferences(PreferenceUtil.java:336)  
at com.zipow.videobox.util.PreferenceUtil.readStringValue(PreferenceUtil.java:431)  
at org.webrtc.voiceengine.VoiceEngineCompat.selectAudioDeviceAPIType(VoiceEngineCompat.java:221)  
at org.webrtc.voiceengine.VoiceEngineCompat.isBluetoothScoSupported(VoiceEngineCompat.java:149)  
at com.zipow.videobox.VideoBoxApplication.onSDKCreated(VideoBoxApplication.java:2224)  
at com.zipow.videobox.VideoBoxApplication.initializeForSDK(VideoBoxApplication.java:2203)  
at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:394)  
at us.zoom.sdksample.initsdk.InitAuthSDKHelper.initSDK(InitAuthSDKHelper.java:47)  
at us.zoom.sdksample.ui.InitAuthSDKActivity.onCreate(InitAuthSDKActivity.java:87)  
at android.app.Activity.performCreate(Activity.java:7037)  
at android.app.Activity.performCreate(Activity.java:7028)  
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)  
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2771)  
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2903)  
at android.app.ActivityThread.-wrap11(Unknown Source:0)  
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1610)  
at android.os.Handler.dispatchMessage(Handler.java:106)  
at android.os.Looper.loop(Looper.java:164)  
at android.app.ActivityThread.main(ActivityThread.java:6602)  
at java.lang.reflect.Method.invoke(Native Method)  
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:453)  
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:821)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 14, 2021, 10:05pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/17 "2021-09-14T22:05:36Z")

</div>

Hey @vary,

Are you using the Windows SDK or the Android SDK?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vary](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vary/32/30924_2.png) [@vary](https://devforum.zoom.us/u/vary)\
**Post date:** [September 22, 2021, 7:15am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/19 "2021-09-22T07:15:58Z")

</div>

@Michael_Condon android and Windows both use for test zoom sdk in China。

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 22, 2021, 10:34pm UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/20 "2021-09-22T22:34:55Z")

</div>

Hey @vary,

Can you provide your code? Please omit any private data.

Thanks!  
Michael

---

<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:** [October 23, 2021, 8:35am UTC](https://devforum.zoom.us/t/auth-sdk-failed-when-running-zoom-sdk-demo/37448/21 "2021-10-23T08:35:16Z")

</div>

Closed on October 23, 2021, 8:35am UTC

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