【问题标题】:How can I check if an email is verified in firebase如何检查电子邮件是否已在 Firebase 中验证
【发布时间】:2019-09-04 00:15:32
【问题描述】:

因此,如果电子邮件经过验证,我会尝试检查 firebase。谷歌文档中没有关于 swift 的文档,在线的所有内容都已过时。

【问题讨论】:

  • 问题不清楚 - 你想从哪里检查它?应用程序? Firebase 控制台?由该用户还是其他用户?当您声明没有Firebase Documentation 而它是outdated 时,您是什么意思?它对我来说看起来很流行。

标签: firebase firebase-authentication swift4


【解决方案1】:

发送电子邮件至verify the user's email address

Auth.auth().currentUser?.sendEmailVerification { (error) in
  // ...
}

检查email address was verified:

if Auth.auth().currentUser?.isEmailVerified {
  // ...
}

【讨论】:

  • 感谢代码的第二部分是我正在寻找的。​​span>
猜你喜欢
  • 2020-11-13
  • 2021-05-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-01-23
  • 1970-01-01
  • 1970-01-01
  • 2021-05-17
相关资源
最近更新 更多