Cannot authorize using jwt

Using the sample project, I can’t authorize sdkError 15 after jwt check

public void onAuthenticationReturn(AuthResult ret)
{
    if (ZOOM_SDK_DOTNET_WRAP.AuthResult.AUTHRET_SUCCESS == ret)
    {
        start_meeting_wnd.Show();
    }
    else//error handle.todo
    {
        Show();
    }
}
public void onLoginRet(LOGINSTATUS ret, IAccountInfo pAccountInfo)
{
    //todo
}
public void onLogout()
{
    //todo
}
private void button_auth_Click(object sender, RoutedEventArgs e)
{
    //register callback
    ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onAuthenticationReturn(onAuthenticationReturn);
    ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLoginRet(onLoginRet);
    ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().Add_CB_onLogout(onLogout);

    var tokenHandler = new System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler();
    var now = DateTime.UtcNow;
    var apiSecret = "****";
    byte[] symmetricKey = Encoding.ASCII.GetBytes(apiSecret);

    var tokenDescriptor = new SecurityTokenDescriptor
    {
        Issuer = "****",
        Expires = now.AddSeconds(30),
        SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(symmetricKey), SecurityAlgorithms.HmacSha256),
    };
    var token = tokenHandler.CreateToken(tokenDescriptor);

    var tokenString = tokenHandler.WriteToken(token);

    ZOOM_SDK_DOTNET_WRAP.AuthContext param = new ZOOM_SDK_DOTNET_WRAP.AuthContext();
    param.jwt_token = tokenString;
    var sdkError = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetAuthServiceWrap().SDKAuth(param);
    MessageBox.Show(sdkError.ToString());
    Hide();
}

void Wnd_Closing(object sender, CancelEventArgs e)
{
    System.Windows.Application.Current.Shutdown();
}

It seems to be because of this : C# wrapper demo callback

Hi @adamhodovanets,

Thanks for the post. Please refer to the answer here: C# wrapper demo callback and see if it helps.

Thanks!