Files
frontend/app/index.tsx

12 lines
296 B
TypeScript
Raw Normal View History

import { Redirect } from 'expo-router';
import { useAuthStore } from '../src/stores';
export default function Index() {
const isAuthenticated = useAuthStore((s) => s.isAuthenticated);
if (isAuthenticated) {
return <Redirect href="/home" />;
}
return <Redirect href="/welcome" />;
}