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

  1. Firebase Authentication: Make sure Google Authentication is activated. If not, add Google as new provider in the Firebase Console

  2. Add the SHA1 Fingerprints for every debug or release version so Google Sign In will work during the tests and on the released version.

    1. Get the SHA1 Fingerprints for debugging

      1. Go to the android folder in your flutter project cd android

      2. Run the command ./gradlew signingReport

      3. Copy every SHA1 Fingerprint to the Android App in the Firebase Console

    2. Get the SHA1 Fingerprint for the release

      1. 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

  1. Firebase Authentication: Make sure Apple Authentication is activated. If not, add Apple as new provider in the Firebase Console

  2. 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>
  1. Add Sign in with Apple as Capability under Signing & Capabilities in Xcode

Last updated