I've implemented google_sign_in package in my flutter application. I'm registering with google and saving the data in Cloud Firestore Database. I can save the data properly.
What I want is that, the next time someone try use register with google again with the same email it will check from database and show that he already have an account and ask to 'login' with google instead.
The reason I'm trying to do this is that, I will update the user data and logout.
And if I login/register again with the same Google email it replaces my updated data with details from google profile. I want the updated data in the Firestore to stay, not update each time I login.
Can anyone help me with this please. Thanks!