I have a PSK (Polymer Starter Kit) PWA build with polymerfire, I want to call fetchSignInMethodsForEmail() from Firebase Auth. I have tried the following but with error.
firebase.auth().fetchSignInMethodsForEmail(email).then((methods) => {
// Do something
});
with the error Uncaught TypeError: firebase.auth(...).fetchSignInMethodsForEmail is not a function.
I have tried the following as well with no luck, i.e.
firebase.auth.fetchSignInMethodsForEmail(email);
firebase.$.auth.fetchSignInMethodsForEmail(email); // Assume firebase-auth with id of 'auth'
fetchProvidersForEmail()was introduced in Firebase JavaScript SDK v4.12 so you need to have at least v4.12 and above.Being said that it is deprecated in v5.0 in favor of
fetchSignInMethodsForEmail().