我能够成功进行 google 登录,当我将令牌传递给 firebase 时,它会返回:
W/System (20511): Ignoring header X-Firebase-Locale because its value was null.
I/flutter (20511): [firebase_auth/unknown] com.google.firebase.FirebaseException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ]
Run Code Online (Sandbox Code Playgroud)
我的 json 文件非常好。我实施:
final _auth = FirebaseAuth.instance;
String email;
String password;
RoundButton(
title: 'register',
color: Colors.blueAccent,
onPressed: () async {
try {
final newUser = await _auth.createUserWithEmailAndPassword(
email: email, password: password);
if (newUser != null) {
Navigator.pushNamed(context, ChatScreen.id);
}
} catch (e) {
print(e);
}
})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7272 次 |
| 最近记录: |