firebase电子邮件验证不起作用,我收到邮件,但是电子邮件verified return false
我很高兴收到Firebase的邮件以验证我的邮件。我很好单击接收到的链接,但是它始终在我的代码中返回错误。怎么了 ?
void verifyEmail() async {
print(FirebaseAuth.instance.currentUser!.email);
await FirebaseAuth.instance.currentUser!.reload;
bool emailVerified = await FirebaseAuth.instance.currentUser!.emailVerified;
print(emailVerified);
}
I well receive the mail from Firebase for the verification of my mail. I well click on the link received, but it is always returning false in my code for .emailVerified. What 's wrong ?
void verifyEmail() async {
print(FirebaseAuth.instance.currentUser!.email);
await FirebaseAuth.instance.currentUser!.reload;
bool emailVerified = await FirebaseAuth.instance.currentUser!.emailVerified;
print(emailVerified);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如我所读到的有关该问题的内容时,您必须在发送验证电子邮件并再次获取用户实例后重新加载
firebase用户
。As what I have read about that issue, you have to reload your
Firebase User
after you had sent the verification email and get the user instance again.