I want to enable auto login for a user into my android application.
Also, I do not want to store user token / user password into keystore / any other storage.
Suppose user logs in into the application for the first time then I am enabling fingerprint authentication and storing username into application storage. If user kills the application then for next launch, if the user authorizes fingerprint then I want to send username and some device specific authorization to the server to get the latest token.
So which one is the better approach to authorize a user for the second time (without password)? Is there anything I can use from following which can be a better approach:
- Sending device id to server for the first login and from second time onward authorizing a user with a user id and the device id...
- Storing encrypted username & password in device storage and key in keystore and on fingerprint authorization sending decrypted username & password to the server for getting access token.
Or any other approach for authorizing the user in an efficient manner? Which is the preferred approach used by most of the banking applications to authorize user without asking for password multiple times?