Commit Graph

17 Commits

Author SHA1 Message Date
CrescentLeaf
059078ea8f refactor: 忽略刷新访问令牌重试的请求 方法重写
* 将原有的 CallableMethodBeforeAuth 纳入
2025-10-06 17:31:35 +08:00
CrescentLeaf
674fe000f4 fix: 无限进行刷新访问令牌
* 由于 Client.ts 中的 invoke 没有对请求方法做判断, 导致不该被 retry 的请求被自动重试
2025-10-06 17:27:03 +08:00
CrescentLeaf
85477fe46e feat: 添加刷新令牌支持
* 服务端: 添加对应的接口, 对原有令牌系统稍有修改, 添加了令牌类型
* 客户端: 自动刷新访问令牌, 登录时顺带获取刷新令牌
2025-10-06 17:13:23 +08:00
CrescentLeaf
151dc31f2c chore: 規範化 client event listener 寫法 2025-09-25 17:14:37 +08:00
CrescentLeaf
b6be09ef7c chore: 客戶端自動添加 token 和 device_id 到 Cookie 裡, 以便 HTTP 請求 2025-09-25 14:17:29 +08:00
CrescentLeaf
38db2e1310 fix: 多個同 DeviceId 不同 Session 的客戶端無法同時收到消息 2025-09-24 22:03:23 +08:00
CrescentLeaf
9a3e87d89c chore: 客戶端發送非驗證性請求前, 必須先等待驗證 2025-09-24 21:52:53 +08:00
CrescentLeaf
8759b660f5 refactor: randomUUID with fallback 2025-09-24 18:15:41 +08:00
CrescentLeaf
184a80436d feat: 自動在重連時進行身份驗證 2025-09-22 23:06:24 +08:00
CrescentLeaf
f118c6b6f5 chore: 修繕客戶端請求允許等待連接 2025-09-21 16:12:31 +08:00
CrescentLeaf
e5dd3ade51 feat: 檢驗用戶的 設備 ID 2025-09-21 12:28:44 +08:00
CrescentLeaf
7686a9b7d1 chore: 使 Client.invoke 支持等待后請求, 解耦 updateCachedProfile 2025-09-21 02:16:01 +08:00
CrescentLeaf
c51a6508e4 feat: access myUserProfile through Client 2025-09-13 00:40:09 +08:00
CrescentLeaf
0e14bb9a45 dep: add socket.io-client 2025-09-08 03:08:11 +08:00
CrescentLeaf
d5e38a8167 feat: Client calling server API 2025-09-06 01:51:57 +08:00
CrescentLeaf
7c679aa0d2 feat(wip): 進一步完善 Client 與服務端的交互邏輯 2025-09-05 20:39:23 +08:00
CrescentLeaf
a316eef807 feat(wip): 前后端通訊基礎類 2025-08-31 13:19:49 +08:00