# Meeting SDK returns error when calling sdkAuth() with JWT

**URL:** <https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560>\
**Category:** Meeting SDK\
**Created:** [June 21, 2023, 5:30am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560 "2023-06-21T05:30:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 21, 2023, 5:30am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/1 "2023-06-21T05:30:03Z")

</div>

**Meeting SDK Type and Version**  
iOS Meeting SDK version 5.14.11.8690

**Description**  
The iOS SDK can’t authenticate when using the JWT token (instead of SDK KEY and SECRET).  
NOTE: We have an MeetingS SDK app for Zoom

```auto
guard let authorizationService = MobileRTC.shared().getAuthService() else {
   return
}
authorizationService.delegate = self
authorizationService.jwtToken = jwtToken
authorizationService.sdkAuth()

```

I am using `SDK KEY and SECRET` to generate the JTW token and already validated the token several times and it seems fine, the SDK also doesn’t complain about that.

**Error?**  
`MobileRTCAuthError: MobileRTCAuthError(rawValue: 4)`

From Zoom documentation: `MobileRTCAuthError_AccountNotEnableSDK	3025	Your account does not support SDK`

**How To Reproduce**  
_Steps to reproduce the behavior including:_  
\*1. Authentication the SDK with JWT  
_2. Error `MobileRTCAuthError(rawValue: 4)` from the delegate method_

---

<div class="post-metadata">

**Author:** ![nausher](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nausher/32/49617_2.png) [@nausher](https://devforum.zoom.us/u/nausher)\
**Post date:** [June 22, 2023, 9:03am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/2 "2023-06-22T09:03:57Z")

</div>

How you are generating JWT token?

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 22, 2023, 9:30am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/3 "2023-06-22T09:30:23Z")

</div>

Thanks for your reply, @nausher I attached the BE code where I generate the JWT token in Typescript:  
Guide: [Meeting SDK Auth](https://developers.zoom.us/docs/meeting-sdk/auth/#sample-code)

```auto
     const KJUR = require('jsrsasign')

      const iat = Math.round((new Date().getTime() - 30000) / 1000)
      const exp = iat + 60 * 60 * 2
      const oHeader = { alg: "HS256", typ: "JWT" }

      const oPayload = {
        sdkKey: process.env.ZOOM_SDK_KEY,
        mn: meetingNumber,
        role: role, // 0 or 1
        iat: iat,
        exp: exp,
        appKey: process.env.ZOOM_SDK_KEY,
        tokenExp: iat + 60 * 60 * 2,
      }

      const sHeader = JSON.stringify(oHeader)
      const sPayload = JSON.stringify(oPayload)
      const signature = KJUR.KJUR.jws.JWS.sign(
        "HS256",
        sHeader,
        sPayload,
        process.env.ZOOM_SDK_SECRET,
      )

```

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 22, 2023, 9:43am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/4 "2023-06-22T09:43:09Z")

</div>

Hi @chunsiong.zoom  
Do you have any idea about this issue that I posted?  
Thanks in advance

---

<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:** [June 22, 2023, 10:14am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/5 "2023-06-22T10:14:03Z")

</div>

The admin might have likely disabled SDK support for the account

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 22, 2023, 10:27am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/6 "2023-06-22T10:27:54Z")

</div>

I’m the Admin, but have seen such an option to disable SDK for an app in the marketplace, do you know where this can be found?

---

<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:** [June 22, 2023, 10:34am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/7 "2023-06-22T10:34:15Z")

</div>

can you raise a ticket? this might be disabled at the request of the customer, if not could you reach out to your account manager?

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 22, 2023, 10:35am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/8 "2023-06-22T10:35:48Z")

</div>

I’ve submitted a ticket and waiting for their response. Thanks for the suggestions

---

<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:** [June 22, 2023, 10:48am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/9 "2023-06-22T10:48:38Z")

</div>

could you share the ticket number here? thanks!

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 22, 2023, 11:03am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/10 "2023-06-22T11:03:24Z")

</div>

Here you go: 17496682

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 23, 2023, 5:55am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/11 "2023-06-23T05:55:36Z")

</div>

Hi @chunsiong.zoom Any idea how to address this issue?  
I’ve received a reply from Zoom support on my ticket stating that I need to seek help on devforum!!

```auto
Hi there,
 
Thank you for contacting Technical Support! Our Developer Advocacy team has moved over to our Zoom Developer Forums. In order to ensure that your inquiry is addressed, please navigate to the Zoom Developer Forums for assistance. https://devforum.zoom.us/
 
If you are interested in additional developer support options for your account, please reach out to your account executive or visit https://explore.zoom.us/docs/en-us/developer-support-plans.html for more information on our developer support tiers.
 
For any non-developer issues or concerns, you can view your support contact options for Zoom Technical Support here: https://support.zoom.us/hc/en-us/articles/201362003, in the meantime, we’ll be closing this ticket out.
 
Thank you!
Armani

```

What do you think?

---

<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:** [June 23, 2023, 9:04am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/12 "2023-06-23T09:04:33Z")

</div>

noted, I’ll reach out internally and get back to you on this

---

<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:** [June 23, 2023, 12:25pm UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/13 "2023-06-23T12:25:13Z")

</div>

@mehrshad ,

meanwhile, can you confirm that your SDK Credentials (SDK Key and SDK Secret) are from Meeting SDK App Type?

 ![Screenshot 2023-06-23 at 8.22.37 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/0/4082d9a6d48d4ea4b8b37e008122eb1152e2937f.png)

I’ll also reach out to you via PM for a sample of your JWT token. just to confirm we have all the necessary troubleshooting steps covered.

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 23, 2023, 12:39pm UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/14 "2023-06-23T12:39:06Z")

</div>

Hi  
Yes, that’s our account.

And yes, credentials are from our Meeting SDK app: WorqApp for Zoom

Sure, please reach out via PM.

Thanks

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 27, 2023, 1:22am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/15 "2023-06-27T01:22:12Z")

</div>

Hi @chunsiong.zoom  
I would like to see if there is any update on our case.  
Thanks

---

<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:** [June 27, 2023, 4:01am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/16 "2023-06-27T04:01:29Z")

</div>

> [@mehrshad](#):
>
> `getAuthService`

@mehrshad I’m still waiting for a response. Have you tried using the JWT token on web sdk by the way?

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 27, 2023, 4:09am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/17 "2023-06-27T04:09:10Z")

</div>

Yes @chunsiong.zoom I’ve tried on the web, it gives the following error when joining too:

```auto
{type: 'JOIN_MEETING_FAILED', reason: 'Not support start meeting via tokens', errorCode: 200}

```

Our older version of our mobile apps which were using SDK key and secret to authenticate the SDK also doesn’t work.

I believe there is an issue with our Zoom Account where we have our Meeting SDK app.

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 29, 2023, 6:55am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/18 "2023-06-29T06:55:25Z")

</div>

Hi @chunsiong.zoom  
Hope you are doing well.  
May I know if there is any update from the team?

---

<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:** [June 30, 2023, 6:32am UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/19 "2023-06-30T06:32:21Z")

</div>

i’m following up with the team daily on this, still waiting for a response

---

<div class="post-metadata">

**Author:** ![mehrshad](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mehrshad/32/49606_2.png) [@mehrshad](https://devforum.zoom.us/u/mehrshad)\
**Post date:** [June 30, 2023, 1:23pm UTC](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560/20 "2023-06-30T13:23:06Z")

</div>

OK 👍 thanks. Let us know as soon as you have updates

[Next page](https://devforum.zoom.us/t/meeting-sdk-returns-error-when-calling-sdkauth-with-jwt/90560.md?page=2)
