Process Flow - Auth state change listeners
Start app
Register auth listener
User signs in/out
Listener detects change
Update app state
Reflect changes in UI
The app starts and sets up a listener for authentication changes. When the user signs in or out, the listener detects it and updates the app state and UI accordingly.