This is a minimal app where you need to log in to see the database. There's also a loading screen while logging in and until the initial data is loaded.
There are three top-level screens corresponding to the three possible states of the app:
{{loggingIn}}
is true{{currentUser}}
If you reload the page while logged in, you'll start in the "logging in" state and see the "Loading..." message until the data loads. Because logging in doesn't complete until all subscriptions have been rerun and finished loading, and the app only serves data when you're logged in, the "logging in" state encompasses loading the initial data for all subscriptions and is the only loading screen we need.
To configure this app for Google auth, the easiest way is to add the accounts-ui
package, add {{> loginButtons}}
to the end of the body, and use the configuration wizard.