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> |
||
|---|---|---|
| .. | ||
| core | ||
| features | ||
| app.dart | ||
| main.dart | ||