In my case, I just needed to add the SHA1 key to Firebase from the Google Play console. You can find it at Test and release > App integrity > Play app signing > Upload key certificate
Just copy the keys and add it to your firebase> project settings> Your apps