MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / logout

Function logout

frontend/src/hooks/useAuthContext.tsx:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 const logout = () => {
49 localStorage.removeItem(ACCESS_TOKEN_KEY)
50 setGuestMode(false)
51 setIsLoggedIn(false)
52 }
53
54 return (
55 <AuthContext.Provider value={{ isGuest, isLoggedIn, setGuestMode, logout }}>

Callers 2

handleLogoutFunction · 0.85
handleLoginFunction · 0.85

Calls 1

setGuestModeFunction · 0.85

Tested by

no test coverage detected