添加项目文件。

This commit is contained in:
2026-05-09 17:06:30 +08:00
parent c60f5fe117
commit 720ef957d4
378 changed files with 14843 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using System.Security.Claims;
namespace IM.Jwt
{
public interface ITokenService
{
/// <summary>
/// 获取令牌
/// </summary>
/// <param name="claims">令牌负载</param>
/// <param name="options"></param>
/// <returns></returns>
string GetToken(IEnumerable<Claim> claims, JwtOptions options);
Task<string> CreateRefreshTokenAsync(Guid userId, CancellationToken cancellationToken = default);
Task RevokeRefreshTokenAsync(string refreshToken);
Task<(bool ok, Guid userId)> ValidateRefreshTokenAsync(string token, CancellationToken cancellation = default);
}
}