是否可以通过Firebase Admin SDK从我的Node.js服务器发送验证电子邮件? [英] Is there a way to send the verification email with the Firebase Admin SDK from my Node.js server?

查看:66
本文介绍了是否可以通过Firebase Admin SDK从我的Node.js服务器发送验证电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从我的服务器发送电子邮件验证电子邮件?

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此处

令我惊讶的是,当前没有选择从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.

可以执行的操作是

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).

这篇关于是否可以通过Firebase Admin SDK从我的Node.js服务器发送验证电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆