Using Firebase to sign in users with Google Sign-In
A social login is a method of authentication where the authentication is delegated to a trustworthy social networking service outside our app. A common social networking service that offers this kind of opportunity is Google.
In this recipe, you’ll learn how to sign in users to a Firebase app. Instead of handling our own usernames and passwords, we will integrate a social login with Google. Once our user is authenticated with Google, we will then sign the user in to our Firebase app using a token provided by Google. This is a very secure way to sign in our users, respecting their privacy as well. Once the user is logged in, we will be able to provide a personalized user experience.
Important Note
If we implement any social login in our app, we must implement Sign in with Apple too. This is a requirement from Apple, and it will be reviewed by Apple before the app is approved for App Store distribution...