We use Zoom SDK [v5.2.41735.0929]
We are writing you to get some support on Zoom SDK init and auth with JWT.
Basically earlier we were using sdk version 4.6 and were able to authenticate with JWT token as mentioned in the documentation.
After updating on sdk 5.2 we are facing issue in sdk authentication.
We are using same code as used for version 4.6 at client side to authenticate sdk with generated token and it returns [.ZoomSDKError_Failed, .ZoomSDKError_Uninit] raw value 3
We are using Swift 5 to build our application.
Also one more more thing we noticed is that same JWT token return success in provided Objective C Sample project for Zoom SDK.
Below is the code we are using to initialised and auth sdk (you can find it in ZoomService.swift of attached sample project).
static func initAndAuthZoomSDKWithJWT(token:JWTToken,delegate: ZoomSDKAuthDelegate) -> Bool{
let sdk: ZoomSDK = ZoomSDK.shared()
sdk.enableDefaultLog(true, fileSize: 50)
let useCustomizedUI: Bool = false
sdk.initSDK(useCustomizedUI)
sdk.zoomDomain = AppConstants.zoomSDKKeys.kSDKDomain //zoom.us
let authService = ZoomSDK.shared().getAuthService()
authService?.delegate = delegate
let authContext = ZoomSDKAuthContext()
authContext.jwtToken = token.token //setting validated token received from token generator and it is working fine in sample project you provided
let response = authService!.sdkAuth(authContext)
if response == ZoomSDKError_Success{
return true
}
return false
}
We also tried this super simplified code and are still failing:
static func initAndAuthZoomSDK(delegate: ZoomSDKAuthDelegate) -> Bool{
let sdk: ZoomSDK = ZoomSDK.shared()
sdk.initSDK(false)
sdk.zoomDomain = βzoom.usβ
let authService = sdk.getAuthService()
if (authService !== nil) {
authService!.delegate = delegate
let response = authService!.sdkAuth(AppConstants.zoomSDKKeys.kSDKAppKey, appSecret: AppConstants.zoomSDKKeys.kSDKAppSecret)
if response == ZoomSDKError_Success {
return true
}
}
return false
}