I am looking to add a feature for resetting passwords or handling forgotten passwords using AngularFire2. It looks like the function sendPasswordResetEmail is either not available in AngularFire2 or the typings have not been updated yet. I tried accessing the function by treating AngularFireAuth as any, like this:
(this.af.auth as any).sendPasswordResetEmail('email').
then((result: any) => {
console.log('Result:', result);
}).catch((err: any) => {
console.log('Err:', err);
});
But Typescript shows me this error:
error TS2349: Cannot invoke an expression whose type lacks a call signature.
Since I am still learning typescript and Angular2, can anyone provide insights on how to access the sendPasswordResetEmail function? I assume I might need to go through the pure JavaScript SDK provided by Firebase, but I'm unsure of the exact steps.
Thank you.