My jwtToken is error ,onZoomSDKInitializeResult, errorCode = 1,

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

Hi @abc2353319759 ,

If you are using Meeting SDK for Android, you will need these key value pair in your payload

appKey
iat
exp
tokenEXP

you do not need tcp (or tpc), and role_type

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()+24*60*60);
        object.put("tokenExp",System.currentTimeMillis()+24*60*60);
    } 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: jwt222 = "+jwt);
    } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
    }
    return null;
}

I modified it according to you, but the error is still there

I usd this id

@abc2353319759 ,

This is the wrong app type. Could you create an SDK App Type and try again?

is time error 246060*1000

@abc2353319759 ,

are you still having issues with this?