Adding Google Sign-in
While dealing with user authentication with a custom user ID and password is quite common, several users prefer using a single authentication provider to access multiple services. One of the great features you can leverage when using Firebase authentication is that you can easily include authentication providers, such as Google, Apple, Microsoft, and Facebook.
In this recipe, you will see how to add Google authentication to your app.
Getting ready
To follow along with this recipe, you need to complete the previous two recipes, Configuring a Firebase app and Creating a login screen.
How to do it...
In this recipe, you will make the Google Sign-in service available to your users.
The first task required to add third-party sign-in features is to enable them in your Firebase project:
- From the Firebase console, in the Authentication page on your project, get to the Sign In method page.
- In the Sign-in providers table, click...