using System.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Collections.Generic;
using Microsoft.IdentityModel.Tokens;
public static void Main()
var tokenDescriptor = new SecurityTokenDescriptor()
Expires = DateTime.UtcNow.AddSeconds(-2),
var tokenHandler = new JwtSecurityTokenHandler();
var stoken = tokenHandler.CreateToken(tokenDescriptor);
Console.WriteLine("everything went well");