我无法获取FirebaseUser方法...!已添加packege Firebse Auth

时间:2020-09-03 08:41:29

标签: flutter dart

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

enter image description here

0 个答案:

没有答案