mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Fix issue #4701: '[Bug]: Too many calls to /authenticate'
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user