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