# auth error

**URL:** <https://devforum.zoom.us/t/auth-error/1382>\
**Category:** macOS\
**Created:** [June 15, 2018, 11:38am UTC](https://devforum.zoom.us/t/auth-error/1382 "2018-06-15T11:38:30Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![anupsoni](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupsoni/32/17808_2.png) [@anupsoni](https://devforum.zoom.us/u/anupsoni)\
**Post date:** [November 2, 2020, 11:43am UTC](https://devforum.zoom.us/t/auth-error/1382/41 "2020-11-02T11:43:21Z")

</div>

I am getting this error and AuthDelegate not called.  
**Optional(\_\_C.ZoomSDKError(rawValue: 3))**

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [November 7, 2020, 8:36am UTC](https://devforum.zoom.us/t/auth-error/1382/42 "2020-11-07T08:36:45Z")

</div>

Hi @anupsoni,

Thanks for the post. The error code means that the SDK is not properly imported(Service Failed). Could you double check and see if the ZoomSDK folder has been moved to the same folder as the .xcodeproj file?

Also, please make sure you enter “[zoom.us](http://zoom.us)” as the web domain. Thanks!

---

<div class="post-metadata">

**Author:** ![anupsoni](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupsoni/32/17808_2.png) [@anupsoni](https://devforum.zoom.us/u/anupsoni)\
**Post date:** [November 9, 2020, 6:48am UTC](https://devforum.zoom.us/t/auth-error/1382/43 "2020-11-09T06:48:21Z")

</div>

It is integrated but works only with Auth key and secret key, it’s not working with jwt token.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [November 13, 2020, 8:25am UTC](https://devforum.zoom.us/t/auth-error/1382/44 "2020-11-13T08:25:39Z")

</div>

Hi @anupsoni,

You may follow the instruction here to generate the JWT token for SDK authentication: [https://github.com/zoom/zoom-sdk-macos#initializing-sdk-with-jwt-token](https://github.com/zoom/zoom-sdk-macos#initializing-sdk-with-jwt-token).

And here is a Python script that could be helpful for generating the JWT token:

```auto
    iat = long(int(time.time()))
    exp = long((datetime.datetime.today() + datetime.timedelta(days=2)).strftime("%s"))
    tokenExp = long((datetime.datetime.today() + datetime.timedelta(hours=1)).strftime("%s"))

    payload = {
        'appKey': key,
        'iat': iat,
        'exp': exp,
        'tokenExp': tokenExp
    }
    encoded = jwt.encode(payload, secret, algorithm='HS256')

```

Thanks!

---

<div class="post-metadata">

**Author:** ![lavishnagar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lavishnagar/32/43965_2.png) [@lavishnagar](https://devforum.zoom.us/u/lavishnagar)\
**Post date:** [December 21, 2022, 1:32pm UTC](https://devforum.zoom.us/t/auth-error/1382/45 "2022-12-21T13:32:45Z")

</div>

Hello Rajat, I faced same issue, app crashing without calling auth delegate.  
Have you been able to resolve this issue?

[Previous page](https://devforum.zoom.us/t/auth-error/1382.md?page=2)
