mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
This commit integrates Firebase Authentication into the application and refactors the `main.dart` file to streamline the user authentication flow. The application will now automatically switch between the main layout and the authentication UI based on the user's sign-in status. - Added Firebase initialization to the `main()` function for Firebase Authentication. - Replaced the home page in `MyApp` with a `StreamBuilder` that listens for Firebase auth state changes. - Based on the auth state, the home page will either show `MainLayout` (if the user is signed in) or `FirebaseAuthView` (if the user is not signed in). - Added necessary imports for the Firebase and authentication services.