firebasepolymerfirebase-authenticationfirebase-polymerpolymerfire

Does new Firebase Auth for polymer have changing password process included?


I can't find any sign of methods for reseting password or sending password reset email in the new firebase-auth for Polymer 1.0 and above. Where can I find it if it exists? I would need it to be able to complete the sign in / up procedure.

I can see the old version for Polymer 0.5 and older that has the methods but the documentation says it's for Polymer 0.5 and older.

Any help would be appreciated.


Solution

  • I believe you can just use all the standard firebase User methods directly on a firebase-auth's user property. ie something like:

    <firebase-auth user="{{user}}"></firebase-auth>
    <script>
      this.$.user.updatePassword(newPassword);
    </script>
    

    & of course following the requirements for this function specified in https://firebase.google.com/docs/reference/js/firebase.User.html#updatePassword