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