- User logs in with Google or Apple
signInWithPopup
- AuthContext
onIdTokenChanged
triggers
- at the same time, 1. run an api call to
user/by-id/:id
which reads from supabase and 2. from the client read the private user doc from firebase
- user returns null, so create user code path
- firebase auth user created
- new user and private user inserted