Reputation: 71
E/FirebaseAuth(12806): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17028 Invalid request fields in play_integrity_token
D/FirebaseAuth(12806): Invoking original failure callbacks after phone verification failure for +994503731324, error - This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid request fields in play_integrity_token ]
I/flutter (12806): This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid request fields in play_integrity_token ]
Upvotes: 4
Views: 5501
Reputation: 311
in my case it happened when I was using the emulator, and tried to log in with a real number. You can use test phone numbers instead Firebase auth docs
Note; Phone number sign-in is only available for use on real devices and the web. To test your authentication flow on device emulators, please see Testing.
-----------------------------------------
addition: Sometimes wipe emulator data helps.
Upvotes: 11