Implementing Google Sign-in
Google mails, or simply Gmail, accounts are widely used nowadays. This is also one of the most prominent authentication methods for a large number of websites and mobile apps, as it uses the secure Google authentication system to make the secure authentication happen. It's fast, reliable, and can be a source of basic metadata for account creation. In this recipe, we're going to see how we can configure and implement Google Sign-in authentication within our application.
Getting ready
Before we write any code, we need to configure our application to host the Google Sign-in functionality within our Firebase console. To do this, you need to head to Firebase Console
| Authentication
| SIGN-IN METHOD
and activate the Google
option (Figure 14):

Figure 14: Activating Google authentication from the Firebase Project Console
Since Firebase is now integrated with the Google cloud console, Google authentication, once enabled, will be automatically configured. This means that we...