I am working on a log in for a web application, and I have made it so the user can sign in manually with their email and password or by using a google sign in. Is there a way to determine which method they used? Preferably by using the Firebase authentication state change function.
`firebase.auth().onAuthStateChanged(firebaseUser => {....`
I know you can tell how they signed in when you go into the Firebase console log but is there a way to determine it using JavaScript code?
When using firebase.auth().currentUser.providerData the following:
