fix(auth): code 由 TTL 控失效(去消费即删)+ 嵌入首开失效诊断/企微告警
- exchange-code 由 getDel(消费一次即删)改为 get:code 在 60s TTL 内可重复换、 返同一票,到点自然失效 → 根治宿主重载/双开的「登录已过期」(旧逻辑消费即删 + 20s 宽限,超窗重载即 MISS)。去掉 grace 副本。 - 新增 bootstrap 全分支诊断埋点(前端 client-diag 信标 → 服务端 [client-diag] 日志), 带存储/环境探针 storageWritable/isEmbedded/hostOrigin/isReload/ua。 - 会话失效(no-credentials/refresh-fail)推企微监控群(复用 AlertService,不去重): 四类根因自动判(存储分区/重载复用/旧码/全新码到手即死),含 code 足迹 (最新那张/已消费过/code 龄);全码只落服务端 MISS 日志(脱敏,不进群)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Showing
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment