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> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios/Runner/Assets.xcassets/AppIcon.appiconset | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.lock | ||
| pubspec.yaml | ||
README.md
it0_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.