Unity Firebase Google SignIn Error Help

Hello everyone!
I’m in a bit of a pickle here. I am making making a unity 2D game and recently decided to add Firebase Authentication as a feature of the game. I’ve added the Email SignIn and Facebook SignIn buttons which both work.
I then enabled the Google SignIn method in Firebase Console, followed all of the documentation steps and managed to get it work briefly.
After about 15 minutes of working each new sign in gives the following error:

Got Error: DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown.
GoogleLogin:OnAuthenticationFinished(Task`1)
System.Threading.ThreadPoolWorkQueue:Dispatch()

I haven’t managed to find any relevant help online, even reverting to the previous version via Github doesn’t seem to solve anything.

If anyone could help me in correcting this, that would be great.
Thanks in advance.

You have Error like: “got error developer error exception of type ‘google.googlesignin+signin exception’ was thrown”?
Problem solved.
I wrote everywhere I can about the solution.
APK and AAB file have different SHA1 and SHA256.
In Firebase, it’s best to add SHA for both applications.
You can check the SHA from the AAB file in Google Play Console → Your application → Configuration → Application integrity → Application signing.
I added these SHA keys to Firebase and the problem was gone.

Please ensure that setted your all environment of Goolgle Signing correctly.

If the error still occurs, try changing the code to the following.

"public string webClientId = " to "private string webClientId = " on your SigninScript.

In my case, it was because I didn’t add SHA1 fingerprint in the Firebase project.

The first time I did this, I only added SHA256, and I got the error. After adding SHA1, it worked like a charm.