# SDK returns error when calling SDKAuth(authParam)

**URL:** <https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610>\
**Category:** Windows\
**Created:** [July 11, 2023, 9:29am UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610 "2023-07-11T09:29:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [July 11, 2023, 9:29am UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/1 "2023-07-11T09:29:55Z")

</div>

Hi.

I have updated the Meeting SDK from 5.12.8.10282 to 5.15.2.18146  
When I call the SDKAuth(AuthContext authParam) it returns SDKERR\_SUCCESS, but the  
event onAuthenticationReturn fires with AuthResult 11.

With v5.12, I passed in AuthParam param with my SdkKey and Secret and everything was ok.

I have verified my creation of jwt at [jwt.io](http://jwt.io)… Nothing wrong there. No settings has been changed on the account.

I am running out of options here. Can anyone thell me what is wrong?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 11, 2023, 2:54pm UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/2 "2023-07-11T14:54:32Z")

</div>

from 5.14, you can only use JWT token to authenticate. The params to authenticate using SDKKey and SDKSecret directly is removed.

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [July 11, 2023, 3:26pm UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/3 "2023-07-11T15:26:57Z")

</div>

I have done that changes. It return error as you can see in the original post.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 12, 2023, 3:33am UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/4 "2023-07-12T03:33:30Z")

</div>

> [@bm.erikstad](#):
>
> onAuthenticationReturn

could you share your JWT token? an expired token is fine as well

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [July 13, 2023, 8:32pm UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/5 "2023-07-13T20:32:31Z")

</div>

I followed the instruction on this page to create the jwt

> **[Set up and initialize](https://developers.zoom.us/docs/meeting-sdk/windows/use-meeting-sdk/development-environment/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

An example is:  
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJTRG90MVdGZ2h6eERBTm9XNTVLZGlnenk0bEphZHFENFRLNlQiLCJpYXQiOjE2ODkxOTkwMDIsImV4cCI6MTY4OTIwNjIwMiwidG9rZW5FeHAiOjE2ODkyMDYyMDJ9.7TuSxR9Tsfl8NcLZH2nvDMr3M5I3drQKlVrtt-618xo

What is wrong with this?

---

<div class="post-metadata">

**Author:** ![bm.erikstad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bm.erikstad/32/3113_2.png) [@bm.erikstad](https://devforum.zoom.us/u/bm.erikstad)\
**Post date:** [July 18, 2023, 7:59pm UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/6 "2023-07-18T19:59:41Z")

</div>

Hi again. When can I expect an answer ?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 19, 2023, 3:03am UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/7 "2023-07-19T03:03:41Z")

</div>

@bm.erikstad please tag me in your reply to get my attention.

The JWT token you have provided looks ok.  
Just to confirm, your appKey is taken from the ClientID found in your meeting SDK app type right?

---

<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:** [August 18, 2023, 1:04pm UTC](https://devforum.zoom.us/t/sdk-returns-error-when-calling-sdkauth-authparam/91610/8 "2023-08-18T13:04:02Z")

</div>

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