using System.Text;
using Microsoft.IdentityModel.Tokens;

namespace Api
{
  public class TokenOptions
  {
    public string Issuer { get; set; }
    public string Audience { get; set; }
    public string SecurityKey { get; set; }

    public SecurityKey Key => new SymmetricSecurityKey(Encoding.UTF8.GetBytes(SecurityKey));
  }
}