# Verify JWT failed

**URL:** <https://devforum.zoom.us/t/verify-jwt-failed/133839>\
**Category:** Video SDK\
**Created:** [June 10, 2025, 1:56am UTC](https://devforum.zoom.us/t/verify-jwt-failed/133839 "2025-06-10T01:56:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenjiesha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wenjiesha/32/69622_2.png) [@wenjiesha](https://devforum.zoom.us/u/wenjiesha)\
**Post date:** [June 10, 2025, 1:56am UTC](https://devforum.zoom.us/t/verify-jwt-failed/133839/1 "2025-06-10T01:56:04Z")

</div>

**Video SDK Type and Version**  
type : Web / React, videosdk-ui-toolkit 2.2.0-1

**Description and Error**  
I randomly got the error “Verify JWT failed”. sometime joining meeting succeed, sometimes it failed. Below is the JWT when it failed. Can you share the detail reason why it failed?

```auto
{
    "videoSDKJWT": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5IjoiOGdZbFo3NGwxdmNwbk9KNzdFSTBXVmdSMFdGMjZHbGpkUUpBIiwicm9sZV90eXBlIjoxLCJ0cGMiOiJ0OG5sdHUwMDAwIiwidmVyc2lvbiI6MSwiaWF0IjoxNzQ5NTIwMjkzLCJleHAiOjE3NDk1Mjc0OTMsInVzZXJfaWRlbnRpdHkiOiIiLCJzZXNzaW9uX2tleSI6InQ4bmx0dTAwMDAiLCJnZW9fcmVnaW9ucyI6IlVTIiwiY2xvdWRfcmVjb3JkaW5nX29wdGlvbiI6MCwiY2xvdWRfcmVjb3JkaW5nX2VsZWN0aW9uIjowLCJ2aWRlb193ZWJydGNfbW9kZSI6MSwiYXVkaW9fd2VicnRjX21vZGUiOjF9.HGayf5y+tYAK1g0UoYAsY0MM6XmQom9fWlLdxLhKNPc",
    "sessionName": "t8nltu0000",
    "userName": "Victor",
    "sessionPasscode": "251251",
    "featuresOptions": {
        "preview": {
            "enable": true
        },
        "audio": {
            "enable": true
        },
        "video": {
            "enable": true
        },
        "chat": {
            "enable": true,
            "enableEmoji": true
        },
        "users": {
            "enable": true
        },
        "settings": {
            "enable": true
        },
        "share": {
            "enable": true
        },
        "leave": {
            "enable": true
        },
        "footer": {
            "enable": true
        },
        "header": {
            "enable": true
        }
    }
}

```

My video SDK account is admin@expertcircle.live

Thank you!

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 10, 2025, 2:07am UTC](https://devforum.zoom.us/t/verify-jwt-failed/133839/2 "2025-06-10T02:07:13Z")

</div>

Hey @wenjiesha

Thanks for your feedback.

Could you open the DevTools → Network tab, filter for requests with the keyword `wc/lsdk`, then find the `x-zm-trackingid` property in the response headers and share it with us?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![wenjiesha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wenjiesha/32/69622_2.png) [@wenjiesha](https://devforum.zoom.us/u/wenjiesha)\
**Post date:** [June 10, 2025, 2:19am UTC](https://devforum.zoom.us/t/verify-jwt-failed/133839/3 "2025-06-10T02:19:09Z")

</div>

Thank you for the quick reply!

X-Zm-Trackingid below

`v=2.0;clid=aw1;rid=WEB_a1d1a48397c39583cb1452ae854b16ff`

The JWT this time is

```auto
{
    "videoSDKJWT": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5IjoiOGdZbFo3NGwxdmNwbk9KNzdFSTBXVmdSMFdGMjZHbGpkUUpBIiwicm9sZV90eXBlIjoxLCJ0cGMiOiJtMXRobGcwMDAwIiwidmVyc2lvbiI6MSwiaWF0IjoxNzQ5NTIxODQ3LCJleHAiOjE3NDk1MjkwNDcsInVzZXJfaWRlbnRpdHkiOiIiLCJzZXNzaW9uX2tleSI6Im0xdGhsZzAwMDAiLCJnZW9fcmVnaW9ucyI6IlVTIiwiY2xvdWRfcmVjb3JkaW5nX29wdGlvbiI6MCwiY2xvdWRfcmVjb3JkaW5nX2VsZWN0aW9uIjowLCJ2aWRlb193ZWJydGNfbW9kZSI6MSwiYXVkaW9fd2VicnRjX21vZGUiOjF9.6UzBOhfvSF8nS4LkpzIfuYrhY7R+zLCgprGCwVOTToo",
    "sessionName": "m1thlg0000",
    "userName": "Test Mentee 1",
    "sessionPasscode": "316412",
    "featuresOptions": {
        "preview": {
            "enable": true
        },
        "audio": {
            "enable": true
        },
        "video": {
            "enable": true
        },
        "chat": {
            "enable": true,
            "enableEmoji": true
        },
        "users": {
            "enable": true
        },
        "settings": {
            "enable": true
        },
        "share": {
            "enable": true
        },
        "leave": {
            "enable": true
        },
        "footer": {
            "enable": true
        },
        "header": {
            "enable": true
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 10, 2025, 3:21am UTC](https://devforum.zoom.us/t/verify-jwt-failed/133839/4 "2025-06-10T03:21:14Z")

</div>

Hi @wenjiesha

I did a preliminary validation of the JWT token on [jwt.io](https://jwt.io/), and it shows: _‘is not encoded correctly using base64url’_.

Could you please check the logic used to generate the JWT?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![wenjiesha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wenjiesha/32/69622_2.png) [@wenjiesha](https://devforum.zoom.us/u/wenjiesha)\
**Post date:** [June 10, 2025, 4:30am UTC](https://devforum.zoom.us/t/verify-jwt-failed/133839/5 "2025-06-10T04:30:57Z")

</div>

Thank you @vic.yang !  
The issue is that the JWT generation logic uses base64 instead of base64url encoding  
This is fixed now

---

<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:** [June 11, 2025, 5:30am UTC](https://devforum.zoom.us/t/verify-jwt-failed/133839/6 "2025-06-11T05:30:59Z")

</div>

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