MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / signOut

Function signOut

apps/cloud/src/web/shell.tsx:44–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42// back home. A fetch would follow that chain invisibly inside the XHR and
43// leave the page where it was; the browser navigation is the logout.
44const signOut = () => {
45 trackEvent("signed_out");
46 const form = document.createElement("form");
47 form.method = "POST";
48 form.action = AUTH_PATHS.logout;
49 document.body.appendChild(form);
50 form.submit();
51};
52
53export function Shell(props: { readonly content?: React.ReactNode }) {
54 const items = useAdminNavItems(navItems, adminNavItems);

Callers

nothing calls this directly

Calls 1

trackEventFunction · 0.90

Tested by

no test coverage detected