using System.Security.Claims;
namespace IM.Jwt
{
public interface ITokenService
{
///
/// 获取令牌
///
/// 令牌负载
///
///
string GetToken(IEnumerable claims, JwtOptions options);
Task CreateRefreshTokenAsync(Guid userId, CancellationToken cancellationToken = default);
Task RevokeRefreshTokenAsync(string refreshToken);
Task<(bool ok, Guid userId)> ValidateRefreshTokenAsync(string token, CancellationToken cancellation = default);
}
}