# Zoom Meeting C# SDKERR\_UNAUTHENTICATION

**URL:** <https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769>\
**Category:** Windows\
**Created:** [January 14, 2024, 6:27am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769 "2024-01-14T06:27:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![startwo8899](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@startwo8899](https://devforum.zoom.us/u/startwo8899)\
**Post date:** [January 14, 2024, 6:27am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/1 "2024-01-14T06:27:36Z")

</div>

**Description**  
While joining a meeting, getting error SDKERR\_UNAUTHENTICATION

**Which Windows Meeting SDK version?**  
zoom-c-sharp-wrapper-5.16.2.22857

**Device:**

- OS: [Windows 10]

**Additional context**  
I am using to generate JWT Token, token generating fine but getting SDKERR\_UNAUTHENTICATION error while joining meeting, here is the complete code:

**To Generate JWT Token: & To Authenticate SDK**

> **[Screenshot](https://prnt.sc/ITAaNYNnICZv)**
>
> Captured with Lightshot

**To Join Meeting**

> **[Screenshot](https://prnt.sc/YKGDH2VsLO4V)**
>
> Captured with Lightshot

Strange this is that with same code, Auth Success sometimes & meeting get joined but some times its giving Auth Error, so not understanding that if code is same for both conditions then where is the issue ?

Please let me know where is the issue

Thanks & Regards

---

<div class="post-metadata">

**Author:** ![startwo8899](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@startwo8899](https://devforum.zoom.us/u/startwo8899)\
**Post date:** [January 14, 2024, 6:40am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/2 "2024-01-14T06:40:12Z")

</div>

Token Samples:

**This token that worked:**  
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJObkl0dEUzTGhWbHlIbFIzajJzaUxqT3B3VndpMlA5VU1SaFYiLCJpYXQiOjE3MDUyMTQzODgsImV4cCI6MTcwNTMwMDc4OCwidG9rZW5FeHAiOjE3MDUzMDA3ODgsIm5iZiI6MTcwNTIxNDM4OCwiaXNzIjoiTm5JdHRFM0xoVmx5SGxSM2oyc2lMak9wd1Z3aTJQOVVNUmhWIiwiYXVkIjoiTm5JdHRFM0xoVmx5SGxSM2oyc2lMak9wd1Z3aTJQOVVNUmhWIn0.vlWQTyuVIt3Zu6MOL08kghMbBF9elzeSDGIDjyb38Dw

**Token that not worked:**  
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJObkl0dEUzTGhWbHlIbFIzajJzaUxqT3B3VndpMlA5VU1SaFYiLCJpYXQiOjE3MDUyMTQyOTIsImV4cCI6MTcwNTMwMDY5MiwidG9rZW5FeHAiOjE3MDUzMDA2OTIsIm5iZiI6MTcwNTIxNDI5MiwiaXNzIjoiTm5JdHRFM0xoVmx5SGxSM2oyc2lMak9wd1Z3aTJQOVVNUmhWIiwiYXVkIjoiTm5JdHRFM0xoVmx5SGxSM2oyc2lMak9wd1Z3aTJQOVVNUmhWIn0.NAzT0MmmCoVhIpfSPo2I0YXgxk4jZAP0VbuezbHYzfk

---

<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:** [January 15, 2024, 3:57am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/3 "2024-01-15T03:57:11Z")

</div>

@startwo8899 ,

Sometimes there might be some system time difference. I would try to set the IAT to be slightly 1-5 mins before current time.

nbf, iss, aud are not necessary parameters in the JWT token btw.

Do tag me @chunsiong.zoom in your response

---

<div class="post-metadata">

**Author:** ![startwo8899](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@startwo8899](https://devforum.zoom.us/u/startwo8899)\
**Post date:** [January 29, 2024, 11:57am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/4 "2024-01-29T11:57:34Z")

</div>

@chunsiong.zoom ,

I tried this & tried by reducing time up to 30 min also, but there is still uncertainty, some times, it gets authenticated & some times getting error again & again, even if create new token again & again.

You can have a look on the code screen shot i posted above, I am generating this token using UTC time, so i think that is fine. Let me know what else I can do so that there will have surety about this authentication step & get connected fine.

Thanks & Regards,

---

<div class="post-metadata">

**Author:** ![startwo8899](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@startwo8899](https://devforum.zoom.us/u/startwo8899)\
**Post date:** [February 1, 2024, 4:12pm UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/5 "2024-02-01T16:12:51Z")

</div>

@chunsiong.zoom ,  
Please reply, I am stuck, this authentication has an uncertainty …

---

<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:** [February 2, 2024, 1:42am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/6 "2024-02-02T01:42:25Z")

</div>

@startwo8899 can you remove the unnecessary fields?

```auto
  "nbf": 1705214292,
  "iss": "NnIttE3LhVlyHlR3j2siLjOpwVwi2P9UMRhV",
  "aud": "NnIttE3LhVlyHlR3j2siLjOpwVwi2P9UMRhV"

```

whats the version of SDK you are using by the way?

---

<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:** [February 2, 2024, 1:45am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/7 "2024-02-02T01:45:42Z")

</div>

@startwo8899 ,

Could you also confirm if your SDK is from a meeting SDK app, and it is the ClientID (or SDK Key) found on [marketplace.zoom.us](http://marketplace.zoom.us)?

---

<div class="post-metadata">

**Author:** ![startwo8899](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@startwo8899](https://devforum.zoom.us/u/startwo8899)\
**Post date:** [February 4, 2024, 2:58pm UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/8 "2024-02-04T14:58:54Z")

</div>

Its Client ID & Client Secret of a Meeting SDK App

> **[Screenshot](https://prnt.sc/Fim3tZbnQ9mC)**
>
> Captured with Lightshot

Changed generate JWT Token method like this now

> **[Screenshot](https://prnt.sc/0soClsUqHHue)**
>
> Captured with Lightshot

Version of SDK:  
zoom-c-sharp-wrapper-5.16.2.22857\x86

At the time of writing this message, it is connecting, but when it start throwing error is the concern…

---

<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:** [February 5, 2024, 5:16am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/9 "2024-02-05T05:16:59Z")

</div>

@startwo8899 please tag me in your response

Could you check if your machine’s time is synced and accurate?

---

<div class="post-metadata">

**Author:** ![startwo8899](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@startwo8899](https://devforum.zoom.us/u/startwo8899)\
**Post date:** [February 6, 2024, 6:23pm UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/10 "2024-02-06T18:23:12Z")

</div>

@chunsiong.zoom ,  
Yes of course, its perfect & in sync state,  
& as i said i tried reducing time by 5 min, 10 min, 15 min, 20 min, 25 min & more, but when it not work, reducing time rarely make it working.  
& when it works, there is nothing done in code or system.  
So it gets connected or not by its own wish, code is same, system is same…

---

<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:** [February 7, 2024, 2:51am UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/11 "2024-02-07T02:51:09Z")

</div>

@startwo8899 I’ll PM you to get more details

---

<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:** [March 8, 2024, 12:51pm UTC](https://devforum.zoom.us/t/zoom-meeting-c-sdkerr-unauthentication/101769/12 "2024-03-08T12:51:51Z")

</div>

Closed on March 8, 2024, 12:51pm UTC

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