skip to Main Content

Firebase Auth Web Error. Error: The argument type 'Future<void> Function()' can't be assigned to the parameter type 'Future<void> Function(App)?'

First of all, this is the error that I encountered: /C:/Users/AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_web-5.2.2/lib/firebase_auth_web.dart:92:45: Error: The argument type 'Future Function()' can't be assigned to the parameter type 'Future Function(App)?'. 'Future' is from 'dart:async'. 'App' is from 'package:firebase_core_web/src/interop/app.dart' ('/C:/Users/Grace%20Computer/AppData/Local/Pub/Cache/hosted/pub.dev/firebase_core_web-2.2.2/lib/src/interop/app.dart'). app.dart:1 FirebaseCoreWeb.registerService('auth', () async {…

VIEW QUESTION

Firebase – GoogleAuthProvider – Option to choose account

I'm working on a project in Flutter. I use this code: _googleAuthProvider.setCustomParameters({'prompt': 'select_account'}); UserCredential userCredential; if (kIsWeb) { userCredential = await _firebaseAuth.signInWithPopup(_googleAuthProvider); } else { userCredential = await _firebaseAuth.signInWithProvider(_googleAuthProvider); } On web I can choose which account I want to…

VIEW QUESTION
Back To Top
Search