I'm trying to use firebase email authentication and enable biometrics.
The solution I am able to come to is:
- enable biometrics and get the fingerprint token
- encrypt the user's
username+password
with this token - store the encrypted
username+password
in app storage - 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 alternative like
- saving an encrypted firebase token instead of
username+password
? - saving the token in a server?
How do professional apps do it with firebase?