Description
I have working macOS sample in objective-c but I am trying to make it in swift, so for the initial test I am trying to check auth, but auth works fine for Objective-c application, but not working on this sample code
class ViewController: NSViewController, ZoomSDKAuthDelegate {
func onZoomSDKAuthReturn(_ returnValue: ZoomSDKAuthError) {
print(returnValue)
}
func onZoomAuthIdentityExpired() {
print("onZoomAuthIdentityExpired")
}
var _authService = ZoomSDKAuthService()
var helper : ZMSDKAuthHelper?
override func viewDidLoad() {
super.viewDidLoad()
let params = ZoomSDKInitParams()
params.needCustomizedUI = true
params.teamIdentifier = nil
let initError = ZoomSDK.shared()!.initSDK(with: params)
print(initError)
let sdk = ZoomSDK.shared()!
sdk.zoomDomain = "zoom.us"
_authService = ZoomSDK.shared()!.getAuthService()!
_authService.delegate = self
let content = ZoomSDKAuthContext()
content.jwtToken = "my token"
let error = ZoomSDK.shared()!.getAuthService()!.sdkAuth(content)
print(error)
}
}
To Reproduce(If applicable)
Steps to reproduce the behavior:
I tried running this above code providing my actual Auth Token but it shows me error as ZoomSDKError(rawValue: 3)