Page MenuHomePhabricator

[lib][native][web] Introduce useWalletLogIn hook
ClosedPublic

Authored by ashoat on Apr 24 2024, 12:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 6:48 AM
Unknown Object (File)
Fri, Nov 8, 4:00 PM
Unknown Object (File)
Thu, Nov 7, 10:25 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Unknown Object (File)
Oct 12 2024, 3:10 PM
Subscribers
None

Details

Summary

This addresses ENG-7680, ENG-7670, and ENG-7672.

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 D11767

Test Plan

This whole stack was tested with the following steps:

  1. On native, attempting to log in with an ETH account that hasn’t been registered yet
  2. On native, attemping to register with an ETH account that has already been registered
  3. On native, log in with an ETH account that has already been registered
  4. On native, register with an ETH account that hasn’t already been registered
  5. On native, register with a password account
  6. On native, log in with a password account
  7. On web, attempting to log in with an ETH account that hasn’t been registered yet
  8. On web, log in with an ETH account that has already been registered
  9. On web, log in with a password account

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka added inline comments.
web/account/siwe-login-form.react.js
81 ↗(On Diff #39504)

If we removed identity from useWalletLogIn name, should we also remove it from identityWalletLogIn and attemptIdentityWalletLogIn?

This revision is now accepted and ready to land.Apr 26 2024, 6:53 AM

Use the name walletLogIn for the result of useWalletLogIn(), and rename attemptIdentityWalletLogIn to attemptWalletLogIn

This revision was landed with ongoing or failed builds.Apr 26 2024, 8:18 AM
This revision was automatically updated to reflect the committed changes.