Authentication
How to setup the user authentication with Firebase Auth
We use Firebase as authentication provider. For more information and instruction about the setup please follow the official documentation https://firebase.google.com/docs/auth/?sjid=3256222636162181250-EU
Setup Google Sign In
Firebase Authentication: Make sure Google Authentication is activated. If not, add Google as new provider in the Firebase Console
Add the SHA1 Fingerprints for every debug or release version so Google Sign In will work during the tests and on the released version.
Get the SHA1 Fingerprints for debugging
Go to the android folder in your flutter project
cd android
Run the command
./gradlew signingReport
Copy every SHA1 Fingerprint to the Android App in the Firebase Console
Get the SHA1 Fingerprint for the release
The SHA1 Fingerprint for the release can be found in the Google Play Developer Console after the app bundle was uploaded
Setup Apple Sign In
Firebase Authentication: Make sure Apple Authentication is activated. If not, add Apple as new provider in the Firebase Console
Add these two key parameters to .iso/Runner/Info.plist and replace the [REVERSED_CLIENT_ID] and the [CLIENT_ID] with the corresponding values from the GoogleService-Info.plist file that can be downloaded from the Firebase Console for the iOS app.
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>[REVERSED_CLIENT_ID]</string>
</array>
</dict>
</array>
<key>GIDClientID</key>
<string>[CLIENT_ID]</string>
Add Sign in with Apple as Capability under Signing & Capabilities in Xcode
Last updated