- ApiClient: 添加 onRefreshToken 回调,401 时自动调用刷新 - ApiClient: 并发保护(_isRefreshing),防止多个 401 触发多次刷新 - ApiClient: 跳过 /auth/refresh 自身的 401(避免无限循环) - ApiClient: 刷新成功后自动重试原始请求 - AuthRepository: 注册 _handleAutoRefresh 回调 - 使用回调模式避免 ApiClient ↔ AuthRepository 循环依赖 审计 ID: 9a-AUTH-01
nuanji_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.