it0/it0_app/lib/core
hailin d1993a1175 feat: add auto-login with token restore on app startup
App 启动时从 SecureStorage 读取已存储的 JWT,解析用户信息自动恢复登录状态,
无需每次重新输入密码。Token 过期则自动尝试 refresh,refresh 失败才跳转登录页。

- 新增 tryRestoreSession() 从 JWT payload 解码用户信息
- 新增 _isTokenExpired() 检查 token 是否过期(预留 60s 缓冲)
- refreshToken() 成功后恢复 AuthState + tenant 上下文
- 新增 /splash 启动页,尝试恢复后决定跳转 dashboard 或 login

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 01:47:20 -08:00
..
audio feat: 完成 iAgent App 三大功能 + 修复租户上下文 2026-02-23 01:10:52 -08:00
config feat: 完成 iAgent App 三大功能 + 修复租户上下文 2026-02-23 01:10:52 -08:00
errors Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
network Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
router feat: add auto-login with token restore on app startup 2026-02-23 01:47:20 -08:00
services feat: 完成 iAgent App 三大功能 + 修复租户上下文 2026-02-23 01:10:52 -08:00
tenant Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
theme feat: 完成 iAgent App 三大功能 + 修复租户上下文 2026-02-23 01:10:52 -08:00
utils Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00
widgets Initial commit: IT0 AI-powered server cluster operations platform 2026-02-08 22:54:37 -08:00