Add auth resilience: user cache, retry, and API token fallback
- 30-second in-memory _user_cache to avoid hammering gnexus-auth
- _fetch_user_with_retry: one retry after 1.5s sleep on transient failure
- API token fallback when OAuth cookie is present but refresh fails
- Clear cache/locks in test fixture to prevent cross-test pollution
- Fix registry timeout test after lowering default to 90s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0dbb348 commit 213f383dc6ff31ede07420416b1390fd33afcaaf
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 24 May
Showing 3 changed files
View
navi/auth/deps.py
View
tests/unit/auth/test_deps.py
View
tests/unit/core/test_registry.py