CodeLiturgy.Dashboard/BlueWest.Data.Auth/Users/Auth/Crypto/IJwtTokenHandler.cs

12 lines
356 B
C#
Raw Normal View History

2022-09-26 04:40:18 +03:00
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using Microsoft.IdentityModel.Tokens;
namespace BlueWest.WebApi.Context.Users
{
public interface IJwtTokenHandler
{
string WriteToken(JwtSecurityToken jwt);
ClaimsPrincipal ValidateToken(string token, TokenValidationParameters tokenValidationParameters);
}
}