0

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.

adjuremods
  • 2,938
  • 2
  • 12
  • 17
TheBen
  • 3,410
  • 3
  • 26
  • 51
  • You've linked to a file. The code in that file seems quite well documented. I'm not really sure what your question is beyond that. – Frank van Puffelen Nov 06 '16 at 06:14
  • Thanks @FrankvanPuffelen for your comment, I must be missing then as I cannot find any method for resetting password or sending related emails in the new firebase-auth document (my first link). Do you mean the second document? Isn't that for Polymer older than 0.5 as it says in the link? Sorry if I seem quite confused. – TheBen Nov 06 '16 at 19:19

2 Answers2

2

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

sfeast
  • 956
  • 5
  • 7
0

Currently as (11/13/2016) polymfire is missing sendPasswordResetEmail. So you can't have a reset password email sent by the system. I have put in a pull request to fix this at: https://github.com/firebase/polymerfire/pull/148.

You can create your own process with the above answer.

  • Thanks but if you see Frank's comment above , he seems to think it's all there. I haven't got a chance to get back to this yet but hopefully all works when I do get a chance. Cheers~ – TheBen Nov 13 '16 at 19:08