I am currently trying to convert an anonymous account into a permanent one using Android Firebase. I am using the email-password provider as a method to create an account. The docs state that you must pass a password parameter into the following code :
val credential = EmailAuthProvider.getCredential(email, password)
My code is the following, I use the FirebaseAuth instance to access the current user which then allows me to access their email however I cannot find a way to access the password:
val credential = EmailAuthProvider.getCredential(mAuth.currentUser.email, password)
Other links I have taken a look at do not improve clarity and cause further confusion.
Firebase Authentication : how to get current user's Password? How to create "credential" object needed by Firebase web user.reauthenticateWithCredential() method? Firebase get current user password
Additionally, the last link states that for security reasons we cannot get the password.