Index: components/Navbar.tsx
===================================================================
--- components/Navbar.tsx	(revision 40ac7a920a0b08c324bf4201b03a36483cc3aad4)
+++ components/Navbar.tsx	(revision 59f8f5a16f9f7d37cd99c84e17950de4121a83e9)
@@ -7,6 +7,6 @@
 import Box from "@mui/material/Box";
 import { styled } from "@mui/material/styles";
-import { fetchAuthState } from "../pages/auth/authState.telefunc";
 import LogoUrl from '../assets/projectlogo.png';
+import {onGetAuthState} from "../pages/+Layout.telefunc";
 
 
@@ -25,5 +25,5 @@
     useEffect(() => {
         let active = true;
-        fetchAuthState()
+        onGetAuthState()
             .then((data) => active && setAuth({ isLoggedIn: data.isLoggedIn, username: data.username }))
             .catch(() => active && setAuth({ isLoggedIn: false, username: null }));
