firebase 3.0 reauthentication for user updatepassword

440 views
Skip to first unread message

ron svend Maylon

unread,
Jun 7, 2016, 11:26:57 AM6/7/16
to Firebase Google Group
Hi Guys

 I'm having hard time to find out how to update user password of the new Firebase.

 




what is the correct parameter for the reauthentication method?

Thanks
Rhon

Jacob Wenger

unread,
Jun 7, 2016, 2:31:53 PM6/7/16
to fireba...@googlegroups.com
Hey Ron,

We will need an mcve in order to help you out. Please put together a JSFiddle or Plunkr demonstrating your issue, or at least drop us some code showing what you have and have not tried. As noted in the reference documentation for reauthenticate(), it takes an instance of firebase.auth.AuthCredential.

Jacob

--
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 post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/932318bc-3a91-4169-9ac8-079374a61c40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

boj...@google.com

unread,
Jun 7, 2016, 6:33:49 PM6/7/16
to Firebase Google Group
From the minimal code you provide, it appears like you are trying to reauthenticate.
To reauthenticate a password user, call:
auth.currentUser.reauthenticate(firebase.auth.EmailAuthProvider.credential('us...@example.com', 'existingPassword'));
However it seems like you are updating the password. To do so call:
auth.currentUser.updatePassword('newPassword');
Reply all
Reply to author
Forward
0 new messages