如何检查电子邮件是否在 firebase 中经过验证

How can I check if an email is verified in firebase

因此,如果电子邮件已通过验证,我将尝试签入 firebase。 google 文档中没有 swift 的文档,所有在线内容都已过时。

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

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

检查是否 email address was verified:

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