In an ASP.Net WebAPI Core project, I issue a JWT token this:
public string GenerateSecurityToken(string email, byte[] salt, string[] roles) {