|
Fix frequent OAuth logouts: offline_access scope, transient error handling, fetchMe resilience
- Add 'offline_access' to OAuth scopes so gnexus-auth issues offline refresh tokens instead of SSO-session-bound ones. - Distinguish TokenRefreshException (invalid/expired refresh token) from transient network errors during token refresh: * TokenRefreshException → logout (token genuinely dead) * Other exceptions → fallback to cached user or API token - Improve refresh failure logging with exc_type and error message. - Frontend fetchMe: swallow non-401 errors so transient 5xx/network failures don't flash the login screen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
|---|
|
|
| navi/api/routes/auth.py |
|---|
| navi/auth/deps.py |
|---|
| webclient/src/stores/auth.js |
|---|