MCPcopy Create free account
hub / github.com/BingyanStudio/github-analyzer / handleLogout

Function handleLogout

web/src/pages/Dashboard.tsx:115–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }, []);
114
115 const handleLogout = () => {
116 document.cookie =
117 "session=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
118 setTimeout(() => {
119 window.location.href = "/login";
120 }, 100);
121 };
122
123 const handleGenerateReport = () => {
124 navigate(`/report${selectedPreset ? `?preset=${selectedPreset}` : ""}`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected