Your post was really helpful! Huge thanks!
But, there is a confusion in my head about what to do next after saving the user to the database. Shouldn’t I try to check if there is an authenticated user before I add it to the database as a new user? Or is Firebase taking care of it by itself, and I shouldn’t do it that way?
That would be perfect if you can add the check if there is an authenticated user already, if so login; if not, save new user. Then, that’d be an ace, plus #1 walk-through out there