CodeLiturgy.Dashboard/CodeLiturgy.Views/Application/Users/Auth/Crypto/IJwtTokenHandler.cs

12 lines
362 B
C#

using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Microsoft.IdentityModel.Tokens;
namespace CodeLiturgy.Data.Auth.Context.Users
{
public interface IJwtTokenHandler
{
string WriteToken(JwtSecurityToken jwt);
ClaimsPrincipal ValidateToken(string token, TokenValidationParameters tokenValidationParameters);
}
}