firebase-admin-dotnet icon indicating copy to clipboard operation
firebase-admin-dotnet copied to clipboard

Sending a password reset mail

Open glb-cblin opened this issue 1 year ago • 0 comments

[REQUIRED] Step 2: Describe your environment

  • Operating System version: not relevant
  • Firebase SDK version: 2.4.0
  • Firebase Product: auth
  • .NET version: not relevant
  • OS: not relevant

[REQUIRED] Step 3: Describe the problem

The SDK is missing a method SendPasswordResetLinkAsync

More precisely, the use case would be to allow ReturnOobLink to be set to false EVEN IF we are authenticated

https://github.com/firebase/firebase-admin-dotnet/blob/master/FirebaseAdmin/FirebaseAdmin/Auth/Users/EmailActionLinkRequest.cs#L62

At the moment, we need to manually instanciate a HttpClient and to send the HTTP request like described at https://firebase.google.com/docs/reference/rest/auth?hl=fr#section-send-password-reset-email

Our exact use case is to create the user with a random password and then to send him a reset password link (but directly from the firebase servers, not from our servers)

If there is a better way (without using my own SMTP server), please share it with me

Steps to reproduce:

not relevant

Relevant Code:

not relevant

glb-cblin avatar Dec 26 '23 09:12 glb-cblin