🐛 [firebase_app_check] Allow manual setting of app check token in debug mode #12376
Labels
platform: all
Issues / PRs which are for all platforms.
plugin: app_check
type: enhancement
New feature or request
type: missing-feature
A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.
In the Android and iOS sections of the App Check docs, there are instructions to configure the App Check debug provider for unit testing in a CI environment. Links:
https://firebase.google.com/docs/app-check/android/debug-provider#ci
https://firebase.google.com/docs/app-check/ios/debug-provider#ci
There are no similar instructions or available methods for App Check in flutter. This makes it difficult to perform an automated test on an app that requires App Check in multiple environments, such as real devices or emulators in Firebase Test Lab. In these situations, a token is printed to console and must be manually added to the Firebase console for each device, instead of all sharing the same token.
The feature should be added to the flutter package as simply as possible. For example:
FirebaseAppCheck.instance.setDebugProviderToken(MY_TOKEN);
The text was updated successfully, but these errors were encountered: