I'm developing an app, that requests user to login (email/password) before being able to proceed to the rest of the app.
I implemented fingerprint scanning and the code correctly validates that the finger print is one of the ones enrolled on the device authorization fingerprints list.
My issue is that I want to be able to associate both situations, something like the user logging in with email/password, then goes to a screen where he can associate is fingerprint with the account he just logged in, and then in the future whenever he logged with the fingerprint on the app, the app would send some kind of unique key representing the fingerprint to the server, and the server would know that such key matched the key of such user (saved previously when associated fingerprint with account) and returned the info of that user.
From what I researched it seems that it's not possible to associate specific fingerprint since they are associated with the device, but working as an authentication for the device would work also, since we assume that only one user uses that specific phone, and even if different persons have access to the phone, and have theirs fingerprints enrolled as allowed, the app would always login using the same user.
In order to be able to have this behavior I need some kind of unique unchanged key that would represent an user/fingerprint. Is it possible? When receiving the response on onAuthenticationSucceeded, could I retrieve that information from the AuthenticationResult ?
Thanks in advance.