有没有办法从我的 Node.js 服务器使用 Firebase Admin SDK 发送验证电子邮件? [英] Is there a way to send the verification email with the Firebase Admin SDK from my Node.js server?
问题描述
有没有办法从我的服务器发送电子邮件验证电子邮件?
Is there a way to send the email verification email from my server ?
这是在客户端上完成的:
This is how it's done on the client:
authData.sendEmailVerification().then(function() {
有没有办法在服务器上做到这一点?
Is there a way to do it on the server ?
推荐答案
firebaser here
令我惊讶的是,目前没有选项可以从 Admin SDK 中发送验证电子邮件.我建议您提交功能请求.
To my surprise there currently is no option to send verification email from within the Admin SDK. I'd recommend you file a feature request.
您在 Admin SDK 中可以做的是更新用户个人资料以将他们的电子邮件标记为已验证.如果需要,这允许您控制整个验证流程,完成调用 admin.auth().updateUser(...)
(在 Node.js 上,请参阅链接其他支持的语言).
What you can do from the Admin SDK is update a user profile to mark their email as verified. This allows you to take control of the entire verification flow if you want to, finishing with a call to admin.auth().updateUser(...)
(on Node.js, see the link for other supported languages).
这篇关于有没有办法从我的 Node.js 服务器使用 Firebase Admin SDK 发送验证电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!