Compare commits

...

1 Commits

Author SHA1 Message Date
openhands
9db1e8e83a Fix issue #4701: '[Bug]: Too many calls to /authenticate' 2024-11-02 01:40:45 +00:00

View File

@@ -72,16 +72,6 @@ const isAgentStateChange = (
export const clientLoader = async () => {
const ghToken = localStorage.getItem("ghToken");
try {
const isAuthed = await userIsAuthenticated();
if (!isAuthed) {
clearSession();
return redirect("/");
}
} catch (error) {
clearSession();
return redirect("/");
}
const q = store.getState().initalQuery.initialQuery;
const repo =