You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: validate DoltHub token at connect time and show expiry reason on reconnect
Three improvements for users with invalid/expired DoltHub API keys:
1. Proactive validation: handleConnect and handleJoin now probe DoltHub
with the API key before creating a session. Bad keys are rejected
immediately with a clear message about tokens vs credentials.
2. Auth-aware error handling: handleBrowse and handleDetail now detect
"invalid authorization" errors and return 401 instead of serving
stale data or a generic "upstream unavailable" 503. This triggers
the frontend re-auth redirect.
3. Expiry UX: the frontend now passes reason=expired when redirecting
to /connect on 401, and the connect page shows a styled error banner
explaining the token expired and linking to DoltHub token settings.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments