Lecture Material: Google Sign-in with Firebase in iOS
Previous article about anonymous login with Firebase authentication.
I’m going to use the same code and project structure with the previous article.
To use Google sign in feature, firstly you need to install additional pod library and change preference in the Firebase console.
Authenticate Using Google Sign-In on iOS | Firebase
You can let your users authenticate with Firebase using their Google Accounts by integrating Google Sign-In into your…
import the ‘GoogleSignIn’ package after install pod.
Paste REVERSED_CLIENT_ID value into the URL Schemes from the GoogleService-Info file.
Put this code block into the AppDelegate
If you faced with this error, you need to update your GoogleSignIn pod library
Use ‘pod outdated’ command to check the availability for upgrading libraries.
Use ‘pod update’ command to make libraries being recent versions.
The error is removed.
(The code above is not working perfectly, check the full implementation with the below)
Finally, you can sign in with your Google account.