【发布时间】:2020-02-29 00:02:45
【问题描述】:
我正在为用户进行firebase身份验证。我同时使用谷歌和手机登录。用户已成功通过身份验证并像那样登录。
但是当我从应用程序中退出并尝试使用相同的谷歌和手机再次登录时,它会告诉我 -
短信验证码失败:PlatformException(FirebaseException, User 已经链接到给定的提供者。, null)
我已使用以下代码从应用程序中退出。
FlatButton(
child: Text("Sign out", style: theme.textTheme.button),
onPressed: () async {
await GoogleSignIn().signOut();
await FirebaseAuth.instance.signOut();
},
)
【问题讨论】:
-
但是如果有人卸载了应用程序并重新安装了怎么办。下面的答案不适用于它。请帮忙。
标签: firebase authentication flutter firebase-authentication