Page MenuHomePhabricator

[native] Use useRegistrationServerCall in FullscreenSIWEPanel for identity registration
ClosedPublic

Authored by ashoat on Apr 24 2024, 12:43 PM.
Tags
None
Referenced Files
F3500742: D11767.diff
Fri, Dec 20, 2:39 AM
Unknown Object (File)
Wed, Dec 18, 6:17 AM
Unknown Object (File)
Wed, Dec 18, 6:17 AM
Unknown Object (File)
Wed, Dec 18, 6:17 AM
Unknown Object (File)
Wed, Dec 18, 6:17 AM
Unknown Object (File)
Wed, Nov 27, 5:02 AM
Unknown Object (File)
Nov 3 2024, 5:38 AM
Unknown Object (File)
Oct 13 2024, 4:00 AM
Subscribers
None

Details

Summary

We had an isolated call to useIdentityWalletRegisterCall here, which doesn't handle keyserver auth. By replacing it with a call to useRegistrationServerCall (via RegistrationContext) we make sure that keyserverAuth happens after identity registration, since it's no longer owned by KeyserverConnectionHandler.

Depends on D11766

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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka added inline comments.
native/account/fullscreen-siwe-panel.react.js
90

Why is cool hardcoded here? It looks like registrationServerCall doesn't use this value at all, can we remove it?

This revision is now accepted and ready to land.Apr 26 2024, 6:27 AM
native/account/fullscreen-siwe-panel.react.js
90

Right now the types require it. This will be addressed in ENG-7710; I'll add a note there to make sure that if we decide to make coolOrNerdMode optional (as opposed to removing it), we should remove this line here

native/account/fullscreen-siwe-panel.react.js
90

Thank you!