Member-only story
Google SignIn Compose
Google SignIn Compose
Article here: https://flatteredwithflutter.com/google-signin-compose/
We will cover briefly:
- Integrating the Google SignIn
- MVVM architecture
- Using Moshi to send data
- (Optional) Check for the previously signed-in user
Note: This article assumes the reader knows about Jetpack Compose

Integrating the Google SignIn
Prerequisite: You need to have a project inside the GoogleCloudPlatform.
Before we start integrating, we copy the client id (as received from the Google Cloud Platform) and paste it inside our res->strings.xml
Note: See the video above
<string name="google_cloud_server_client_id">YOUR_ID</string>
Setup
- Install the dependencies inside
build.gradle
of your app
implementation 'com.google.android.gms:play-services-auth:19.2.0'