---
title: Google Login
description: "#### This documentation is valid for Classima 2.107.2 and upper versions. ## Google Login (Using Firebase) 1. Open [this link](https://console.firebase.google.com/) . Signup for a firebase account if you haven't already. Login to Firebase console, setup a new project, or use…"
url: "https://www.radiustheme.com/docs/classima-mobile-app/docs/social-login/google-login/"
updated: "2026-08-04"
category: Social Login
---

# Google Login

#### This documentation is valid for Classima 2.107.2 and upper versions.

## Google Login (Using Firebase)

1. Open [this link](https://console.firebase.google.com/) . Signup for a firebase account if you haven't already. Login to Firebase console, setup a new project, or use existing one.
2. Create a native iOS app using the `ios.bundleIdentifier` you defined in app.json file (**for ios**), and/or an Android app using the `android.package`. (**for android**)

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2023-05-03-at-9.57.40-AM.png)
3. (**Android only**) Go to your Firebase project’s settings, scroll down to “Your apps” and select your Android app. Under `SHA certificate fingerprints`, click `Add fingerprint`, and add `Google Certificate Fingerprint`.
   You’ll get `Google Certificate Fingerprint` by following steps:
   (You need to build your app once before these steps to generate credentials)
   – run `eas credentials`
   – Select Android
   – Select profile (**production**)
   – You’ll get all the credentials in the console. From here copy the “**SHA1 Fingerprint**“. This SHA1 Fingerprint is `Google Certificate Fingerprint`.
   *** If you haven’t already run `eas build -p android` for this project, you’ll need to do that first before getting the Google Certificate Fingerprint.

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/11/Screenshot-2025-11-20-at-12.38.05-PM-1024x670.png)
4. Now go to firebase "Project Overview" and click "+ Add app" button under your project name to add a new web app.

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2024-07-01-at-12.17.43-PM.png)

   Now select the "</>" for web platform

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2024-07-01-at-12.18.14-PM.png)

   Give it a name and click "Register app"

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2024-07-01-at-12.19.14-PM.png)

   Click "Continue to console"

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2024-07-01-at-12.20.06-PM.png)
5. Ensure that in the "Authentication" menu, "Google" is enabled as "Sign-in method". From Left sidebar, select "Build" > "Authentication". Click "Add new provider" > Select "Google" > Click "Enable" > Click "Save"

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2025-11-20-at-5.12.49-PM.png)

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2025-11-20-at-5.26.24-PM.png)

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2025-11-20-at-5.27.10-PM.png)
6. Download the `GoogleService-Info.plist` (**iOS**) & the `google-services.json` (**Android**) from your Firebase project settings page. Move them to your app's root folder.

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2024-07-01-at-12.31.25-PM.png)

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2024-07-01-at-12.32.22-PM.png)

   ![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2022/03/Screenshot-2022-03-21-at-3.35.06-PM.png)
7. (**iOS only**) Also in **app.json**, set `expo.ios.googleServicesFile` to the relative path of your `GoogleService-Info.plist`.
8. (**Android Only**) And also in **app.json**, set `expo.android.googleServicesFile` to the relative path of your `google-services.json`.
   at this stage your app.json file will have the following

```
 // app.json
{
  "expo": {
    ....,
    "ios": {
      "bundleIdentifier": "com.yourapp",
      "googleServicesFile": "./GoogleService-Info.plist",
      ....
    },
    "android": {
      "package": "com.yourapp",
      "googleServicesFile": "./google-services.json",
      ....
    },
    ....
  }
}
```

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2023-05-03-at-10.04.34-AM.png)

8. Now Run following command

`npx expo install @react-native-google-signin/google-signin@16.0.0`

9. Open screens > LoginScreen.jsx and remove "//" (see below image)

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2024/06/Screenshot-2024-06-05-at-10.50.09-AM.png)

10. Open screens > AccountScreen.jsx and remove "//" (see below image)

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2024/06/Screenshot-2024-06-05-at-10.51.52-AM-1024x409.png)

11. Open app.json file and insert the following line in the **expo > plugins** array
`"@react-native-google-signin/google-signin",`

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2022-12-20-at-10.43.19-AM.png)

12. Finally open your **google-services.json** file and copy the **client_id** which has "**client_type**" : **3** in the next line. Now open project > app > services > **socialLoginConfig.js**file. Now paste the value under **webClientId**. And make sure to put the value of enabled to true and include '**google**' to the platforms array. Also put the value of **enable** as **true** . See the image.

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/11/Screenshot-2021-11-15-at-12.46.35-PM-1024x337.png)

13. Now go to firebase project setting and add Support email. This is very important.

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/0O3f-5I5JBZYjT1pROSJqUujrXrbVdXT2A.png)

14. After configuring Google Login, please create a new build and test with that. Older build will produce errors.

15. After you upload the app in play store and get approved, you need to log in to your play console account and select your published app. On the next page from left sidebar, select **"Test and Release"** > **"App Integrity"**. Scroll down to**"Play app signing"** and click "Settings". Copy the “**SHA-1 certificate fingerprint**” under **“App signing key certificate”**.

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/11/Screenshot-2025-11-20-at-12.48.35-PM.png)

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/11/Screenshot-2025-11-20-at-12.52.48-PM.png)

Go to your firebase project, open the android app you created in step 2. Now add the “**SHA-1 certificate fingerprint**” to your project.
Similarly Copy the **"SHA-256 certificate fingerprint"** And add it to firebase project.
If you miss this step, google signin will not work in the app downloaded from play store.

![](https://www.radiustheme.com/docs/classima-mobile-app/wp-content/uploads/sites/13/2021/08/Screenshot-2022-01-27-at-11.06.09-AM.png)
