<legend id='TLEru'><style id='TLEru'><dir id='TLEru'><q id='TLEru'></q></dir></style></legend>

      <bdo id='TLEru'></bdo><ul id='TLEru'></ul>
    <i id='TLEru'><tr id='TLEru'><dt id='TLEru'><q id='TLEru'><span id='TLEru'><b id='TLEru'><form id='TLEru'><ins id='TLEru'></ins><ul id='TLEru'></ul><sub id='TLEru'></sub></form><legend id='TLEru'></legend><bdo id='TLEru'><pre id='TLEru'><center id='TLEru'></center></pre></bdo></b><th id='TLEru'></th></span></q></dt></tr></i><div id='TLEru'><tfoot id='TLEru'></tfoot><dl id='TLEru'><fieldset id='TLEru'></fieldset></dl></div>
    1. <tfoot id='TLEru'></tfoot>
    2. <small id='TLEru'></small><noframes id='TLEru'>

      1. Firebase“手动"创建用户

        Firebase create user quot;manuallyquot;(Firebase“手动创建用户)
            • <i id='6wsnN'><tr id='6wsnN'><dt id='6wsnN'><q id='6wsnN'><span id='6wsnN'><b id='6wsnN'><form id='6wsnN'><ins id='6wsnN'></ins><ul id='6wsnN'></ul><sub id='6wsnN'></sub></form><legend id='6wsnN'></legend><bdo id='6wsnN'><pre id='6wsnN'><center id='6wsnN'></center></pre></bdo></b><th id='6wsnN'></th></span></q></dt></tr></i><div id='6wsnN'><tfoot id='6wsnN'></tfoot><dl id='6wsnN'><fieldset id='6wsnN'></fieldset></dl></div>
            • <small id='6wsnN'></small><noframes id='6wsnN'>

              <legend id='6wsnN'><style id='6wsnN'><dir id='6wsnN'><q id='6wsnN'></q></dir></style></legend>

                  <tbody id='6wsnN'></tbody>

                <tfoot id='6wsnN'></tfoot>
                  <bdo id='6wsnN'></bdo><ul id='6wsnN'></ul>
                  本文介绍了Firebase“手动"创建用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用的是标准的电子邮件 + 密码身份验证提供商.

                  I'm using the standard Email + Password auth-provider.

                  在某些情况下,我必须手动创建一个 firebase 用户.该流程类似于使用定义的电子邮件 + 生成的密码调用 REST api,如果成功,则使用他的密码向用户发送欢迎电子邮件.类似于正向用户注册.

                  Through certain circumstances I have to create a firebase user manually. The flow would be something like calling a REST api with an defined email + generated password, and if succeeded sending a welcome email to the user with his password. Something like forward user registration.

                  我通读了他们的文档,但找不到太多内容.(新的文档甚至不提供用于用户管理的 REST API 部分……好吧,只是要清楚,新的谷歌"风格的文档,无论如何都非常糟糕:)).

                  I read through their docs and couldn't find much. (the new docs don't even offer a REST API section for user management.. well and just to be clear, the new "google" styled docs, pretty much suck anyway :) ).

                  是否有人已经做过类似的事情并且可以帮助我?

                  Is there someone who has already done something similar and can help me out?

                  顺便说一句:也可以通过 createUserWithEmailAndPassword() 在客户端创建它们,但是这个函数会自动重新验证新用户,这在我的场景中一定不会发生.是否可以在不自动登录用户的情况下使用 createUserWithEmailAndPassword()?

                  BTW: It would also be possible to create them client side through createUserWithEmailAndPassword(), but this function does automatically reauthenticate the new user, which must not happen in my scenario. Is it possible to use createUserWithEmailAndPassword() without automatically logging in the user?

                  推荐答案

                  您可以在客户端中创建一个新的 Firebase 应用上下文,然后在那里调用 createUserWithEmailAndPassword():

                  You can create a new Firebase App context in your client and then call createUserWithEmailAndPassword() there:

                  var authApp = firebase.initializeApp({
                    // ...
                  }, 'authApp');
                  var detachedAuth = authApp.auth();
                  
                  detachedAuth.createUserWithEmailAndPassword('foo@example.com', 'asuperrandompassword');
                  

                  通过向 initializeApp 添加第二个参数,您可以创建一个单独的上下文,该上下文不会在用户创建时触发重新身份验证.

                  By adding a second argument to initializeApp you create a separate context that will not trigger re-authentication upon user creation.

                  这篇关于Firebase“手动"创建用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                • <i id='CcAwY'><tr id='CcAwY'><dt id='CcAwY'><q id='CcAwY'><span id='CcAwY'><b id='CcAwY'><form id='CcAwY'><ins id='CcAwY'></ins><ul id='CcAwY'></ul><sub id='CcAwY'></sub></form><legend id='CcAwY'></legend><bdo id='CcAwY'><pre id='CcAwY'><center id='CcAwY'></center></pre></bdo></b><th id='CcAwY'></th></span></q></dt></tr></i><div id='CcAwY'><tfoot id='CcAwY'></tfoot><dl id='CcAwY'><fieldset id='CcAwY'></fieldset></dl></div>
                  1. <tfoot id='CcAwY'></tfoot>
                    <legend id='CcAwY'><style id='CcAwY'><dir id='CcAwY'><q id='CcAwY'></q></dir></style></legend>

                  2. <small id='CcAwY'></small><noframes id='CcAwY'>

                            <bdo id='CcAwY'></bdo><ul id='CcAwY'></ul>

                              <tbody id='CcAwY'></tbody>