# Got error SDKERR\_UNAUTHENTICATION when call JoinMeeting as end user

**URL:** <https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491>\
**Category:** Windows\
**Created:** [June 1, 2021, 6:29am UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491 "2021-06-01T06:29:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexRaiev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexraiev/32/27701_2.png) [@AlexRaiev](https://devforum.zoom.us/u/AlexRaiev)\
**Post date:** [June 1, 2021, 6:29am UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/1 "2021-06-01T06:29:38Z")

</div>

I am getting error SDKERR\_UNAUTHENTICATION when trying to join meeting as withoutLoginUser.

**Which Desktop Client SDK version?**  
zoom-sdk-windows-5.5.12511.0422

1. Init SDK and auth. This step works fine with no errors  
ZOOMSDK::SDKError CMeetingService::InitSDK(ZOOMSDK::InitParam& param)  
{  
ZOOM\_SDK\_NAMESPACE::SDKError err = SDKInterfaceWrap::GetInst().Init(param);  
if (ZOOM\_SDK\_NAMESPACE::SDKERR\_SUCCESS != err)  
{  
//todo: do more UI work  
}  
else  
{  
//todo: do more network connection work  
if (SDKInterfaceWrap::GetInst().GetNetworkConnectionHelper())  
{  
// SDKInterfaceWrap::GetInst().GetNetworkConnectionHelper()-\>RegisterNetworkConnectionHandler(this);  
}  
}

2. Attempting to join meeting:

On the line: m\_pMeetingService-\>Join(paramJoinMeeting); I am getting SDKERR\_UNAUTHENTICATION error which is unexpected as far as on previous step authorization was made.

---

<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:** [June 1, 2021, 8:48pm UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/2 "2021-06-01T20:48:52Z")

</div>

Hey @AlexRaiev,

Thanks for using the dev forum! You must wait for the onAuthReturn event to be triggered before attempting to join a meeting. Right now there is a race condition between authing the SDK and calling joinMeeting.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![AlexRaiev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexraiev/32/27701_2.png) [@AlexRaiev](https://devforum.zoom.us/u/AlexRaiev)\
**Post date:** [June 1, 2021, 10:59pm UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/3 "2021-06-01T22:59:27Z")

</div>

Thank you Michael for your reply. This moment was unclear from SDK documentation which seems to be slightly outdated.  
So, could you provide more details or example regarding this event handling, since I can’t find any mention of it in SDK Demo App. Probably you mean onAuthenticationReturn, correct?

---

<div class="post-metadata">

**Author:** ![AlexRaiev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexraiev/32/27701_2.png) [@AlexRaiev](https://devforum.zoom.us/u/AlexRaiev)\
**Post date:** [June 2, 2021, 5:31pm UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/4 "2021-06-02T17:31:20Z")

</div>

I found a few topics here related to problems with no triggering onAuthenticationReturn event which is similar to my case.  
but I also noticed that it happen in console or C# wrapper type apps. In my case, I am building win32 application C++ MFC. Does it make any sense and help to resolve this issue?

---

<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:** [June 2, 2021, 7:00pm UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/5 "2021-06-02T19:00:04Z")

</div>

Hey @AlexRaiev,

> [@AlexRaiev](#):
>
> unclear from SDK documentation which seems to be slightly outdated.

This is true, we are in the process of updating our docs.

> [@AlexRaiev](#):
>
> So, could you provide more details or example regarding this event handling, since I can’t find any mention of it in SDK Demo App. Probably you mean onAuthenticationReturn, correct?

Yes, onAuthenticationReturn is what I meant. My mistake it is called onAuthReturn in the iOS SDK 🙂

> [@AlexRaiev](#):
>
> I found a few topics here related to problems with no triggering onAuthenticationReturn event which is similar to my case.  
> but I also noticed that it happen in console or C# wrapper type apps. In my case, I am building win32 application C++ MFC. Does it make any sense and help to resolve this issue?

As long as your application is set up to receive Windows API messages, the events should trigger properly. Applications like Console Applications need additional work because they do not handle Windows messages by default. If your application is successfully receiving messages but your onAuthenticationReturn callback is not firing, it is likely the the SDK was not given a valid JWT, or the SDK was not initialized properly.

The first thing I would do to troubleshoot further is to pass in your SDK key and secret into the auth parameters instead of the JWT. Do not do this in practice, but only for troubleshooting. To do this, replace your [tagAuthContext](https://marketplacefront.zoom.us/sdk/meeting/windows/structtag_auth_context.html) with a [Windows SDK API Reference: tagAuthParam Struct Reference](https://marketplacefront.zoom.us/sdk/meeting/windows/structtag_auth_param.html).

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![AlexRaiev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexraiev/32/27701_2.png) [@AlexRaiev](https://devforum.zoom.us/u/AlexRaiev)\
**Post date:** [June 2, 2021, 10:04pm UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/6 "2021-06-02T22:04:19Z")

</div>

Thank you for your help.  
I am already tried to use AppKey+SecretKey with the same result.  
I generate JWT token by using [jwt.io/#debugger](http://jwt.io/#debugger) and this token works fine in demo app.  
So, the problem is definitely in my code which is based on demo application code but without using duilib. So, I am still not sure how to find what is causing this error.

---

<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:** [June 3, 2021, 4:58pm UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/7 "2021-06-03T16:58:38Z")

</div>

Hey @AlexRaiev,

Can you send a small sandboxed version of your application to me at [DeveloperSupport@zoom.us](mailto:DeveloperSupport@zoom.us)? Please omit any personal data and mention this post in the email.

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:** [July 4, 2021, 2:59am UTC](https://devforum.zoom.us/t/got-error-sdkerr-unauthentication-when-call-joinmeeting-as-end-user/51491/8 "2021-07-04T02:59:02Z")

</div>

Closed on July 4, 2021, 2:59am UTC

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