Let's explain what just happened:
- We used the Firebase UI so we could have an easy and simple UI out of the box, so we didn't do any UI management from our side. The SDK built everything for us using nothing but an API call inside the setAvailableProviders() method as presented in the preceding section.
- We implemented the onActivityResult() method to retrieve the basic profile information in case everything went all right. This function was where we pulled all our post-authentication logic, from redirection to information and profile storing.