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
refactor: replace 401 redirect loop with auth-required error page, drop cookie
- Remove global fetch interceptor that caused infinite redirect loop between
/ and project subpaths (SPA auto-navigates from / to last project, which
then gets 401 again, looping)
- Add is401() detection in ErrorPage: shows "Authentication required" with a
clear explanation instead of the generic "Something went wrong"
- Remove oc_auth_token cookie entirely: the SPA already carries credentials in
Authorization headers via createSdkForServer; the cookie was redundant and
added by us, not upstream
- Simplify uiRouterMiddleware to a trivial pass-through; the SPA always loads
at any subpath without server-side auth blocking
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
"error.page.auth.description": "This server requires a password. Open this page from the OpenCode desktop app, or use a URL that includes an auth token.",
0 commit comments