2022-09-26 04:40:18 +03:00
|
|
|
using System.IdentityModel.Tokens.Jwt;
|
|
|
|
using System.Security.Claims;
|
|
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
|
|
2022-09-27 20:12:13 +03:00
|
|
|
namespace BlueWest.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);
|
|
|
|
}
|
|
|
|
}
|