# SDK randomly returns error when calling SDKAuth(authParam)

**URL:** <https://devforum.zoom.us/t/sdk-randomly-returns-error-when-calling-sdkauth-authparam/94960>\
**Category:** Windows\
**Created:** [September 12, 2023, 8:53pm UTC](https://devforum.zoom.us/t/sdk-randomly-returns-error-when-calling-sdkauth-authparam/94960 "2023-09-12T20:53:16Z")\
**Posts on this page:** 3\
**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:** [September 12, 2023, 8:53pm UTC](https://devforum.zoom.us/t/sdk-randomly-returns-error-when-calling-sdkauth-authparam/94960/1 "2023-09-12T20:53:16Z")

</div>

Hi.

When calling the SDKAuth(AuthContext authParam) it always returns SDKERR\_SUCCESS.  
and normally the event onAuthenticationReturn fires with AUTHRET\_SUCCESS.

The issue is that sometimes the event onAuthenticationReturn fires with AuthResult 11. (AUTHRET\_JWTTOKENWRONG)

The JwtToken is created is the same way and with the same SDK Key and SDK Secret every time.  
I am running SDK version 5.15.10.20873

i have gotten a hold of the SDK logs from one instance of the issue, but I am not able to reproduce the problem in lab.

Please help on how to debug and fix this issue,

---

<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:** [September 13, 2023, 1:44pm UTC](https://devforum.zoom.us/t/sdk-randomly-returns-error-when-calling-sdkauth-authparam/94960/2 "2023-09-13T13:44:41Z")

</div>

Never mind. I figured out what the root cause was.

---

<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 13, 2023, 11:45pm UTC](https://devforum.zoom.us/t/sdk-randomly-returns-error-when-calling-sdkauth-authparam/94960/3 "2023-10-13T23:45:08Z")

</div>

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