Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase password resets

I'm trying to create a password reset mechanism and am stuck. Any suggestions how to do this with Firebase basic email/password authentication

like image 243
Jim McDermott Avatar asked Jan 30 '13 16:01

Jim McDermott


2 Answers

[Engineer at Firebase - Update 2014-01-27]

Firebase Simple Login now supports password resets for email / password authentication.

Each of the Simple Login client libraries has been given a new method for generating password reset emails for the specified email address - sendPasswordResetEmail() on the Web and Android, and sendPasswordResetForEmail() on iOS.

This e-mail will contain a temporary token that the user may use to log into their account and update their credentials. This token will expire after 24 hours or when the user changes their password, whichever occurs first.

Also note that Firebase Simple Login enables full configuration of the email template as well as the sending address (including whitelabel email from your domain for paid accounts).

To get access to this feature, you'll need to update your client library to a version of v1.2.0 or greater. To grab the latest version, check out https://firebase.google.com/docs/.

Also, check out https://firebase.google.com/docs/auth/web/password-auth for the latest Firebase Simple Login - Web Client docs.

like image 61
Rob DiMarco Avatar answered Nov 16 '22 04:11

Rob DiMarco


This is something that Firebase doesn't do very well. As you'll notice it requires the user to remember their old password. Usually if you want to reset a password it's because you've forgotten it. Hopefully the improve the methods they provide for account management.

like image 33
nazbot Avatar answered Nov 16 '22 03:11

nazbot