Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

363 B
Raw Blame
using System.IdentityModel.Tokens.Jwt;

namespace Grand.Module.Api.Jwt;

public sealed class JwtToken
{
    private readonly JwtSecurityToken token;

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

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