MCPcopy
hub / github.com/autobase-tech/autobase / handleLogout

Function handleLogout

console/ui/src/features/logout-button/ui/index.tsx:13–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const navigate = useNavigate();
12
13 const handleLogout = () => {
14 localStorage.removeItem('token');
15 navigate(generateAbsoluteRouterPath(RouterPaths.login.absolutePath));
16 };
17
18 return (
19 <Tooltip title={t('logout')}>

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected