mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-09 09:29:17 +08:00
- Added `tryRefreshAfterUnauthorized` to refresh OAuth credentials on 401 errors during requests. - Implemented `refreshLocks` to prevent concurrent refreshes for the same auth ID. - Updated auth/state handling to reset unauthorized model states and resume operations after a successful refresh. - Enhanced refresh logic with error handling, synchronization, and state updates. Closes: #4087