auth error

I am getting this error and AuthDelegate not called.
Optional(__C.ZoomSDKError(rawValue: 3))

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” as the web domain. Thanks!

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

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.

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

    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!

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