MCPcopy Create free account
hub / github.com/alanagoyal/docbase / handleSignOut

Function handleSignOut

components/command-menu.tsx:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 );
44
45 const handleSignOut = async () => {
46 const supabase = createClient();
47 const { error } = await supabase.auth.signOut();
48 if (error) clientLogger.error('Sign out error', { error });
49 router.push("/login");
50 router.refresh();
51 };
52
53 useEffect(() => {
54 const down = (e: KeyboardEvent) => {

Callers 2

downFunction · 0.70
handleItemClickFunction · 0.70

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected