Firebase auth was working fine, the debug build suddenly started failing without any change of code, logging the folloing message
D/PhoneAuthActivity( 7392): signInWithCredential:failure:com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verifythat the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed ].
The only notable action inbetween a successful login and failure is android studio upgrade.
A simple solution for App-signed enabled app.
UPDATE (10-10-2020) FOR NEW PLAYSTORE CONSOLE:
Play store Console > Your project > Release > Setup > App signing
FOR OLD PLAYSTORE CONSOLE:
Play store Console > Your project > Release management > App signing
Firebase Console > Your project > Settings of the app > Add Fingerprint
Keystore.