Agu*_*ana 15 firebase firebase-authentication flutter
我尝试阅读此线程List of AuthorizationErrors with Firebase Login,并且我也尝试搜索,但我只能在此处找到 admin SDK 身份验证错误
这些链接中的错误代码与 Flutter 应用程序的 Firebase Auth 的错误代码不同
我的意思是,我需要这里的错误代码
Future<void> signInUsingEmail({required String email, required String password}) async {
try {
await _auth.signInWithEmailAndPassword(email: email, password: password);
} on FirebaseAuthException catch (error) {
// I need the error.code in here
print(error.code);
}
Run Code Online (Sandbox Code Playgroud)
我可以知道所有可用的错误代码吗?这样我就可以用自己的语言编写自己的错误消息。就目前而言,我只能捕获下面的这些错误代码
还有什么?
Joe*_*ler 36
对于不喜欢点击链接的人:
Ren*_*nec 14
对于Flutter 的方法,您可以在包文档signInWithEmailAndPassword中找到错误代码。firebase_auth
它们实际上与 JS SDK 相同:https://firebase.google.com/docs/reference/js/firebase.auth.Auth#error-codes_12(链接到 Web Archive 上的文档)
| 归档时间: |
|
| 查看次数: |
21065 次 |
| 最近记录: |