update Zoom SDK to 5.16.10
and I get error code 1 and internal code 0
this how I initialize sdk
fun initSDK(context: Context, callback: InitAuthSDKCallback) {
zoomSDK = ZoomSDK.getInstance()
if (!zoomSDK.isInitialized) {
initAuthSDKCallback = callback
val initParams = ZoomSDKInitParams()
initParams.jwtToken = generateToken()
initParams.enableLog = true
initParams.domain = WEB_DOMAIN
zoomSDK.initialize(context, callback, initParams)
}
}
and method to get jwttoken
private fun generateToken(): String {
var token = ""
try {
val algorithm: Algorithm = Algorithm.HMAC256(BuildConfig.zoomSecretKey)
val expirationDate =
Date(System.currentTimeMillis() + 3600000) // Set the token expiration time (1 hour in this example)
token = JWT.create()
.withIssuer(BuildConfig.zoomClientKey)
.withExpiresAt(expirationDate)
.sign(algorithm)
} catch (e: Exception) {
e.printStackTrace()
}
return token
}