Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase-admin python sending password reset email

In Python I am trying to do 'send a password reset email', javascript reference (https://firebase.google.com/docs/reference/js/firebase.auth.Auth#sendPasswordResetEmail). So far (and only recently) it looks like 'generate password reset link' was added (https://github.com/firebase/firebase-admin-python/releases). Does anyone know the next step in getting the email send? Do we send the email ourselves? If so, any suggestions? Is there a way to send the email in python directly?

Thanks for all your help in advance!

like image 508
HeronAlgoSearch Avatar asked Dec 09 '25 19:12

HeronAlgoSearch


1 Answers

Might be late but for others to see:

email = '[email protected]'
link = auth.generate_password_reset_link(email, action_code_settings)
# Construct password reset email from a template embedding the link, and send
# using a custom SMTP server.
send_custom_email(email, link)

More in here: https://firebase.google.com/docs/auth/admin/email-action-links#python_1

like image 50
S. Hwang Avatar answered Dec 11 '25 09:12

S. Hwang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!