---
description: How to setup the user authentication with Firebase Auth
---

# Authentication

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](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 to the Firebase Project in the Firebase Console 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 or change 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.

```xml
<key>CFBundleURLTypes</key>
<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>
```

3. Add **Sign in with Apple** as **Capability** under **Signing & Capabilities** in **Xcode**
