Firebase "sendPasswordResetEmail" functionality change

1,985 views
Skip to first unread message

Santhosh T

unread,
Mar 15, 2021, 6:23:50 AM3/15/21
to Firebase Google Group
I have a project developed which has two set of users. So, instead of using Gmail as email address I used custom domain name like - 1...@customname.com 

These emails are not accessible and does not have storage to receive mails. In simple words: Its a dummy domain used by me to identify the set of users.

If I need to reset password for these users, I came up using sendPasswordResetEmail method. It seems that it checks the firebase users list whether the email is available and sends mail to that id (Which is not accessible in my case). 

I decided to ask user for a recovery email and store them in firestore, which is used while the user tries to reset password, I thought this method would send password reset mail to that recovery mail. But it returns error: user not found or may be deleted - since there is no user created with recovery email.

Please help me with this. How can I send mail to custom mail ID's which are not created as users inside firebase.

Sam Stern

unread,
Mar 15, 2021, 6:34:11 AM3/15/21
to Firebase Google Group
Hi Santhosh,

Firebase Auth can't be used to send emails to arbitrary addresses, the password reset service can only be used to send emails to the addresses registered with Firebase Auth. If you need to send emails to custom addresses that are not associated with Firebase Auth users you should look into a dedicated email service like Mailgun, Mailchimp, etc.

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/64491280-2b96-43be-9cb8-14d32b75fe9bn%40googlegroups.com.

Santhosh T

unread,
Mar 17, 2021, 5:59:02 AM3/17/21
to fireba...@googlegroups.com
Hi Sam,

I came up with linking user's google account with that dummy domain email, since that domain is most important to me. And I am just a student right now and I cannot afford much to use email services. So, as a result of linking google accounts I tried once again and it does not send mail either. As it is looking for the user's primary email address and proceeds with sending mail to that email (which is not accessible). 

Is there any possible way that firebase could implement this feature of sending mails to their secondary email (in my case - the linked google account) ? 





--
SANTHOSH T,
2017 - 2021 ( B.E CSE )
Panimalar Engineering College - Chennai

Check out my worksBehance LinkedIn 

Sam Stern

unread,
Mar 17, 2021, 6:00:57 AM3/17/21
to Firebase Google Group
Hi Santhosh,

Unfortunately not, that's not likely something we will implement. These emails are meant to help verify an email address or restore a lost password. Sending them to a different email than the email address linked to the password changes the security of the whole flow.  Maybe one day in the future Firebase could have the idea of a "recovery email" like Google accounts have but it's not in our plans at the moment.

- Sam

Santhosh T

unread,
Mar 18, 2021, 6:25:04 AM3/18/21
to fireba...@googlegroups.com
Ok Sam. Thanks for the help
Cool!

Reply all
Reply to author
Forward
0 new messages