From e7238e65065fd27c6347685a4f5b4b219140f177 Mon Sep 17 00:00:00 2001 From: Chris Torres Date: Wed, 11 Dec 2024 04:08:06 -0800 Subject: [PATCH] fixes --- src/context/AuthContext.tsx | 2 +- src/navigation/AppNavigator.tsx | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/context/AuthContext.tsx b/src/context/AuthContext.tsx index c2e126c..1144576 100644 --- a/src/context/AuthContext.tsx +++ b/src/context/AuthContext.tsx @@ -15,7 +15,7 @@ type AuthState = { const AuthContext = createContext(undefined); export const AuthContextProvider = ({ children }: { children: ReactNode }) => { - const [isAuthenticated, setIsAuthenticated] = useState(true); + const [isAuthenticated, setIsAuthenticated] = useState(false); useEffect(() => { const syncAuthState = async () => { diff --git a/src/navigation/AppNavigator.tsx b/src/navigation/AppNavigator.tsx index 433110a..7ef7203 100644 --- a/src/navigation/AppNavigator.tsx +++ b/src/navigation/AppNavigator.tsx @@ -109,12 +109,19 @@ export default function AppNavigator() { return ( {isAuthenticated ? ( - + ) : ( - + + )}