[lib][native][web] Introduce usePasswordLogIn hook
Summary:
This addresses ENG-7681, ENG-7671, and ENG-7673.
This furthers the goal of the parent task, which is to move authoritative keyserver auth from KeyserverConnectionHandler to the individual components responsible for login.
Depends on D11763
Test Plan:
This whole stack was tested with the following steps:
- On native, attempting to log in with an ETH account that hasn’t been registered yet
- On native, attemping to register with an ETH account that has already been registered
- On native, log in with an ETH account that has already been registered
- On native, register with an ETH account that hasn’t already been registered
- On native, register with a password account
- On native, log in with a password account
- On web, attempting to log in with an ETH account that hasn’t been registered yet
- On web, log in with an ETH account that has already been registered
- On web, log in with a password account
Reviewers: tomek, inka
Reviewed By: inka
Differential Revision: https://phab.comm.dev/D11765