π OpenHands: AI-Driven Development
fix(frontend): auth logic (#5390)
sp.wack438f19c80e8b
diff --git a/frontend/src/entry.client.tsx b/frontend/src/entry.client.tsxindex a17a782328..f4bc670a34 100644--- a/frontend/src/entry.client.tsx+++ b/frontend/src/entry.client.tsx@@ -52,8 +52,8 @@ async function prepareApp() {const queryClient = new QueryClient({queryCache: new QueryCache({- onError: (error) => {- toast.error(error.message);+ onError: (error, query) => {+ if (!query.queryKey.includes("authenticated")) toast.error(error.message);},}),defaultOptions: {diff --git a/frontend/src/routes.ts b/frontend/src/routes.tsindex 552621039c..1b59fc6b17 100644--- a/frontend/src/routes.ts+++ b/frontend/src/routes.ts@@ -15,5 +15,5 @@ export default []),]),- route("oauth", "routes/oauth.github.callback.tsx"),+ route("oauth/github/callback", "routes/oauth.github.callback.tsx"),] satisfies RouteConfig;