import { Stack, Redirect } from 'expo-router'; import { useAuthSession } from '@/providers/AuthProvider'; import { ActivityIndicator, View } from 'react-native'; export default function AuthLayout() { const { user, loading } = useAuthSession(); if (loading) { return ( ); } if (user) { return ; } return ; }