How can i use android biometrics with firebase email authentication service?

I’m trying to use firebase email authentication and enable biometrics.

The solution I am able to come to is:

  1. enable biometrics and get the fingerprint token
  2. encrypt the user’s username+password with this token
  3. store the encrypted username+password in app storage
  4. when user authenticates using biometrics, app decrypts stored username+password and logs in firebase.

The issue is of-course the difficult choice of storing encrypted username+password locally.

Is there any better choice like

  • saving the token in a server?

  • saving an encrypted firebase token instead of username+password ?

How do professional apps do it with firebase? :no_mouth:
thank you for reply…