Skip to content

🐛 [firebase_app_check] Allow manual setting of app check token in debug mode #12376

Closed
@jt274

Description

@jt274

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: allIssues / PRs which are for all platforms.plugin: app_checktype: enhancementNew feature or requesttype: missing-featureA feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions