How to use the sendPasswordResetEmail() function on the server using the firebase-admin SDK?

前端 未结 3 1047
盖世英雄少女心
盖世英雄少女心 2020-12-11 13:08

In the past, I have used firebase.auth in the web client and once a user creates another user, I link certain security logic:

  • Once the user has been created I s
3条回答
  •  执笔经年
    2020-12-11 13:43

    1. Those functions are not available in firebase-admin, but you should be able to run the client-side SDK (firebase) on the server as well. Not exactly a best practice, but it will get the job done. There's a long standing open feature request to support this functionality in the Admin SDK. You will find some helpful tips and workarounds there.
    2. Could be a bug. I would consider reporting it along with a complete and minimal repro. The Admin SDK does have an integration test case for this use case, but it works slightly differently.
    3. Not at the moment. Hopefully, this will be covered when the above feature request is eventually fulfilled.

提交回复
热议问题