Fix issue #4701: '[Bug]: Too many calls to /authenticate'

This commit is contained in:
openhands
2024-11-02 01:40:45 +00:00
parent 36623a16da
commit 9db1e8e83a

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 =