I have code to generate JWT token:
var utcNow = DateTime.UtcNow; var utcNowUnix = (Int32)(utcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds