MCPcopy Create free account
hub / github.com/dailydotdev/apps / closeAndLogout

Function closeAndLogout

packages/shared/src/components/auth/AuthModal.tsx:41–46  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

39 };
40
41 const closeAndLogout: CloseAuthModalFunc = (e) => {
42 if (user && !user.username) {
43 logout(LogoutReason.IncomleteOnboarding);
44 }
45 onClose(e);
46 };
47
48 const { onContainerChange, formRef, onDiscardAttempt } = useAuthForms({
49 onDiscard: closeAndLogout,

Callers

nothing calls this directly

Calls 2

onCloseFunction · 0.70
logoutFunction · 0.50

Tested by

no test coverage detected