[lib] Extract useRawKeyserverAuth
Summary: This addresses ENG-7668, which is explained more in its parent ENG-7667.
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/D11761