import { Text, View } from "react-native";
import LoginForm from "./components/LoginForm";
import { AuthProvider } from "./context/AuthContext";
import { useAuth } from "./context/AuthContext";
export default function Index() {
return (
);
}
function MainContent() {
const { isAuthenticated, domain, username, authData } = useAuth();
if (!isAuthenticated) {
return (
);
}
return (
Connected to: {domain}
User: {username}
Debug authData: {JSON.stringify(authData, null, 2)}
{/* Use authData as needed */}
);
}