final AuthResult authResult = await _auth.signInWithCredential(credential);
final FirebaseUser user = authResult.user;
assert(!user.isAnonymous);
assert(await user.getIdToken() != null);
final FirebaseUser currentUser = await _auth.currentUser();
assert(user.uid == currentUser.uid);
Asked
Active
Viewed 20 times
0

ChrisGPT was on strike
- 127,765
- 105
- 273
- 257

Ah Zeem khatib
- 29
- 4
-
plz check above image to help me out – Ah Zeem khatib Sep 03 '20 at 08:42
-
check the latest FlutterFire documentation.. they change "FirebaseUser" to "User", The FirebaseUser class has been renamed to User... https://firebase.flutter.dev/docs/migration – Raine Dale Holgado Sep 03 '20 at 08:46
-
What does "I'm not able to get FirebaseUser Method" mean? We need _exact_ error messages, please, ideally with full tracebacks. Please read [ask]. – ChrisGPT was on strike Sep 05 '20 at 10:33