更新 JWT

This commit is contained in:
chfei committed 2026-08-28 15:31:45 +08:00
1 parent f84c4c1949
commit 8526e5e0d2
10 files changed
+40 -63

No files matched your search

@@ -1,4 +1,4 @@
namespace StoreHub.Framework.Security;
namespace StoreHub.Framework.Security;
/// <summary>
/// 在线用户会话存储:基于 <see cref="Microsoft.Extensions.Caching.Memory.IMemoryCache"/> 的进程内实现,
@@ -12,14 +12,14 @@ public interface IOnlineUserStore
void SignIn(OnlineUserInfo info);
/// <summary>
/// 判断指定用户、指定令牌会话是否仍然有效(未被退出、未被新登录顶替)。
/// 判断指定登录账户、指定令牌会话是否仍然有效(未被退出、未被新登录顶替)。
/// </summary>
bool IsTokenActive(int userId, string jti);
bool IsTokenActive(string userName, string jti);
/// <summary>
/// 退出登录:销毁该用户的在线会话,令牌立即失效。
/// 退出登录:销毁该账户的在线会话,令牌立即失效。
/// </summary>
void SignOut(int userId);
void SignOut(string userName);
/// <summary>
/// 获取当前在线人员列表。