简体   繁体   English

Email OTP验证Flutter中的firebase认证

[英]Email OTP verification with firebase authentication in Flutter

By default firebase's sending a link to verify the user email, but I want to send a otp with that email. So is there a way to customize that email or send a otp and then once the user entered the correct code on the app get Firebase to mark that user account to email verified?默认情况下,firebase 会发送一个链接来验证用户 email,但我想发送一个带有 email 的 otp。那么有没有办法自定义 email 或发送一个 otp,然后一旦用户在应用程序上输入正确的代码,就会得到 Firebase将该用户帐户标记为 email 已验证?

What you're describing is quite literally what the default Firebase flow does: it send an email with a link that includes a OTP to verify the email address.您所描述的实际上是默认 Firebase 流的作用:它发送一个 email 和一个包含 OTP 的链接来验证 email 地址。

You can do a certain amount of customization of the email action handler page that the emails link to.您可以对电子邮件链接到的 email 操作处理程序页面进行一定程度的自定义 If that is not enough, you will have to implement your own flow, and can then use the Admin SDK in a secure environment to mark the user's email as verified .如果这还不够,您将不得不实施自己的流程,然后可以在安全环境中使用 Admin SDK 将用户的 email 标记为已验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM