MCPcopy Create free account
hub / github.com/Bitbox-Connect/Bitbox / handleLogout

Function handleLogout

client/src/component/Navbar.jsx:84–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 };
83
84 const handleLogout = async () => {
85 try {
86 doSignOut();
87 localStorage.removeItem("token");
88 setUserLoggedIn(false)
89 navigate("/login");
90 } catch (error) {
91 console.error(error);
92 }
93 };
94
95 // const toggleSidebar = () => {
96 // setIsSidebarOpen(!isSidebarOpen); // Toggle sidebar visibility

Callers

nothing calls this directly

Calls 1

doSignOutFunction · 0.90

Tested by

no test coverage detected