Description
I have my own application and have imported all the Zoom SDK Frameworks. However, I could not authenticate with JWT.
Which version?
zoom-sdk-macos-5.4.54802.0124
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Download zoom-sdk-macos-5.4.54802.0124.zip from marketplace
- Launched Sample App and verified the JWT token generated is working. Join Meeting without Login works as expected in the Sample App.
- Drag and drop the folder ZoomSDK into my own application and add all the embeded binaries and Frameworks.
- Use the code below
let params = ZoomSDKInitParams() params.needCustomizedUI = false; params.teamIdentifier = nil; params.enableLog = true; params.logFileSize = 50; ZoomSDK.shared().initSDK(with: params) let sdk: ZoomSDK = ZoomSDK.shared() // set zoom domain sdk.zoomDomain = kZoomSDKDomain // set to "zoom.us" let jwt = JWTTOKEN // generated from jwt.io let authContext = ZoomSDKAuthContext() authContext.jwtToken = jwt let authService = ZoomSDK.shared().getAuthService() let authDelegate = ZMAuthDelegate(). // a class similar to ZMSDKAuthHelper in the sample app. authService?.delegate = authDelegate let response = authService!.sdkAuth(authContext) if response == ZoomSDKError_Success{ print("SUCCESS") } else { print("fail") print(response) }
Console Output:
fail
ZoomSDKError(rawValue: 3)
Screenshots
Some of the other posts said to check if the ZoomSDK is in the same folder
Smartphone (please complete the following information):
- Device: Macbook Pro
- OS: macOS Catalina
- Version 10.15.7
Additional context
Any help is appreciated! Thanks in advance!