With Google Sign-In, users can log in using their Google Accounts.
Prerequisites
- Completed Register Your Application in Firebase and update file google-service.json
- Completed Change Application ID for you project
- Enable Firebase Sign-in Provider
- Enable the Google People API.
- Make sure you’ve filled out all required fields in the console for OAuth consent screen. Otherwise, you may encounter
APIException
errors.
Important: Make sure you choose the correct project that you have created in Firebase when you Enable Google People API and fill fields in Auth consent screen.
![](https://appcheap.io/wp-content/uploads/2023/05/image-15.png)
Enable Firebase Sign-in Provider
- Step 1: Click “Build” expand and select Authentication
- Step 2: Select google
![](https://appcheap.io/wp-content/uploads/2023/11/Screenshot-2023-11-10-at-14.20.05-1024x358.png)
- Step 3: enable => save
![](https://appcheap.io/wp-content/uploads/2023/11/Screenshot-2023-11-10-at-14.28.29-1024x549.png)
Set up the Google Client ID in the source code:
Open file cirilla/android/app/google-services.json
and copy client ID
Open file cirilla/lib/constants/app.dart
and replace with your client_id content copy above
![](https://appcheap.io/wp-content/uploads/2023/05/Screenshot-2023-05-18-at-09.35.03-1024x576.png)