diff --git a/src/main.jsx b/src/main.jsx index cb97ab6..5361ee3 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -83,15 +83,8 @@ const routerMapping = [ function AppContent() { const { authConfig } = useAppContext(); const navigate = useNavigate(); - - React.useEffect(() => { - const handler = () => navigate("/login"); - window.addEventListener("auth:unauthorized", handler); - return () => window.removeEventListener("auth:unauthorized", handler); - }, [navigate]); - return ( - + navigate("/login")}>