I use my generated jwtToken initialization error SDK, onZoomSDKInitializeResult, errorCode = 1, internalErrorCode = 0
InitAuthSDKHelper.getInstance().initSDK(this, this);
This is my jwtToken generation code:
private String getJWT(){
HashMap<String,Object> header=new HashMap<>();
header.put(“alg”, “HS256”);
header.put(“typ”, “JWT”);
JSONObject object=new JSONObject();
try {
object.put("appKey", SDK_KEY);
object.put( "iat",System.currentTimeMillis());
object.put("exp",System.currentTimeMillis()+36*60*60);
object.put("tcp","niebiao123");
object.put("role_type",1);
} catch (JSONException e) {
e.printStackTrace();
}
try {
String jwt= Jwts.builder().
setHeader(header).
setPayload(object.toString()).
signWith(SignatureAlgorithm.HS256, SDK_SECRET.getBytes("UTF-8")).
compact();
Log.d("TAG", "onCreate: jwt = "+jwt);
return jwt;
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return null;
}
Android metting sdk vision is 5.14.11
Can you tell me how function getJWT is wrong