ildar-shaymukhametov_grandnode-refactorings/Grand.Api/Jwt/JwtToken.cs
using System;
using System.IdentityModel.Tokens.Jwt;

namespace Grand.Api.Jwt
{
    public sealed class JwtToken
    {
        private JwtSecurityToken token;

        internal JwtToken(JwtSecurityToken token)
        {
            this.token = token;
        }

        public DateTime ValidTo => token.ValidTo;
        public string Value => new JwtSecurityTokenHandler().WriteToken(this.token);
    }
}
