如何在 Flutter 中使用 Firebase 模拟器测试 Google Auth

How can I test Google Auth with Firebase Emulator in Flutter

我使用 Firebase Emulator 来测试 Firestore、Cloud Functions 和 Auth。我一直在使用使用电子邮件和密码登录。现在,我想实现 Google Auth。如何在 Flutter 中使用 Firebase 模拟器测试 Google Auth?

使用FirebaseAuth.instance.signInWithCredential(credential) 即使在 firebase 模拟器中也应该工作

credential 应该取自 GoogleAuthProvider.credential()