[firebase_app_check]: Error when trying to use function "getToken()" #17363
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: web
Issues / PRs which are specifically for web.
plugin: app_check
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
App Check
Which platforms are affected?
Web
Description
I expected to get a token, and it keeps giving an error in console.
Reproducing the issue
A flutter app with App Check and try to get the token.
Example:
Future main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
await FirebaseAppCheck.instance.activate(
webProvider: ReCaptchaV3Provider('KEY_HERE'),
androidProvider: AndroidProvider.debug,
appleProvider: AppleProvider.deviceCheck,
);
print(await FirebaseAppCheck.instance.getToken());
runApp(MyApp());
}
Firebase Core version
3.13.0
Flutter Version
3.29.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: