实现客户端登录七天滑动续期

需求:解决短效访问令牌到期后客户端一小时掉登录的问题。

实现:由 Electron Main 加密管理并轮换刷新凭据,按真实用户活动续期,七天闲置后清理会话,并补齐并发、迁移和终态回归测试。
This commit is contained in:
2026-08-07 16:11:10 +08:00
parent 7b23cce67a
commit 86ece3a430
20 changed files with 2941 additions and 326 deletions

View File

@@ -10,6 +10,7 @@ const HOST_EVENT_TO_IPC_CHANNEL: Record<string, string> = {
'oauth:error': 'oauth:error',
'agent-browser:show': 'agent-browser:show',
'agent-browser:state': 'agent-browser:state',
'auth:session-changed': 'auth:session-changed',
};
function getEventSource(): EventSource {