[firebase_auth]: Bad handling of Token Service errors #13405
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
Needs Attention
This issue needs maintainer attention.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: auth
Stale
Issue with no recent activity
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
iOS
Description
So, I've been having an annoying issue that was hard for me to diagnose.
Basically, if you've got a Flutter app using Firebase Auth, you may encounter cryptic problems if you don't have Token Service API authorized in your Google Cloud keys.
Issues including:
I've already had a similar problem with the API restrictions feature of Google Cloud, it's happened to me twice, and it's really painful to debug.
Now I understand that authentication is not supposed to work if the API is restricted at the key level.
But there are multiple issues here that should still be addressed:
The main problem here is that communication from the Firebase SDK to the developer is lacking on this specific issue. There are three axis of improvements:
Thank you for your work maintaining this project.
Reproducing the issue
Have a project with Firebase Authentication enabled, but using an API key without the Token Service API permission in Google Cloud.
Firebase Core version
3.5.0
Flutter Version
3.24.3
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: