# Android : How to authenticate Zoom SDK using JWT instead of SDK key and Secret Key

**URL:** <https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408>\
**Category:** Android\
**Created:** [October 5, 2021, 8:22am UTC](https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408 "2021-10-05T08:22:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh.9884843620](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vignesh.9884843620](https://devforum.zoom.us/u/vignesh.9884843620)\
**Post date:** [October 5, 2021, 8:22am UTC](https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408/1 "2021-10-05T08:22:35Z")

</div>

Hello Team,  
Am doing authentication using SDK key and secret key in my app, now I don’t want to do the Authentication using a SDK key and secret key, I wanted to use a JWT token instead, I generated JWT using Zoom marketplace and I have generated the token using this link

> **[Authentication - Meeting SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/auth)**
>
> Authentication
> 
> 
> 
> Zoom Meeting SDK apps authenticate with Zoom through a pair of access credentials, SDK Key and SDK Secret, which are signed and commun...

I commented out

initParams.appKey = SDK\_KEY;  
initParams.appSecret = SDK\_SECRET;

and used initParams.jwtToken = JWT\_TOKEN;

I get an error from Zoom saying “Zoom SDK is not initialized successfully”. Can you please help me with this?

---

<div class="post-metadata">

**Author:** ![vignesh.9884843620](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vignesh.9884843620](https://devforum.zoom.us/u/vignesh.9884843620)\
**Post date:** [October 5, 2021, 12:11pm UTC](https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408/2 "2021-10-05T12:11:22Z")

</div>

Hello Team,  
I also went through this link

> [@Can't get SDK initialization to work using JWT](https://devforum.zoom.us/t/cant-get-sdk-initialization-to-work-using-jwt/30090/6):
>
> Hi @gjudd, For creating JWT with NodeJS I am using [https://www.npmjs.com/package/jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) :- var jwt = require('jsonwebtoken'); var expiry = ((new Date()).getTime() + 3600000); // JWT validity 1 hour var payload = { "iss": API\_KEY, // replace API\_KEY with your API\_KEY "exp": expiry }; var jwtToken = jwt.sign(payload, API\_SECRET); // replace API\_SECRET with your API\_SECRET NOTE : In my case SDK\_KEY and SDK\_SECRET did not work.

where you have mentioned using an API key and API secret instead of SDK key and SDK Secret, we are getting the same message again “Zoom is not initialized successfully”. Can you please help us with this issue?

---

<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:** [October 5, 2021, 8:23pm UTC](https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408/3 "2021-10-05T20:23:21Z")

</div>

Hi @vignesh.9884843620,

When you authenticate the SDK with a JWT, you will still need to provide your SDK credentials in the JWT. You cannot authenticate the SDK with the key/secret used from any other app type. If you are getting a JWT directly from the Marketplace, it likely means that you are using the wrong app type. In order to use a JWT with the SDK, you will need to generate it yourself using the SDK key/secret associated with an SDK app type. More information can be found in our [authentication docs](https://marketplace.zoom.us/docs/sdk/native-sdks/auth).

If you are still seeing errors after following the above instructions, please provide the structure of your JWT payload (with your developer credentials redacted) and the error code you are seeing.

Thanks!

---

<div class="post-metadata">

**Author:** ![vignesh.9884843620](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vignesh.9884843620](https://devforum.zoom.us/u/vignesh.9884843620)\
**Post date:** [October 6, 2021, 9:13am UTC](https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408/4 "2021-10-06T09:13:09Z")

</div>

Hello @jon.zoom,  
We did a small mistake while generating the JWT token, we figured it out and we were able to run the meetings using the JWT token, thank you for your help and support.

---

<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:** [October 6, 2021, 5:44pm UTC](https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408/5 "2021-10-06T17:44:46Z")

</div>

That’s great to hear you were able to resolve this!

Please don’t hesitate to reach back out with any additional questions. 🙂

---

<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:** [November 6, 2021, 3:44am UTC](https://devforum.zoom.us/t/android-how-to-authenticate-zoom-sdk-using-jwt-instead-of-sdk-key-and-secret-key/58408/6 "2021-11-06T03:44:59Z")

</div>

Closed on November 6, 2021, 3:44am UTC

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