Page MenuHomePhabricator

[native] Use useRegistrationServerCall in FullscreenSIWEPanel for identity registration
ClosedPublic

Authored by ashoat on Wed, Apr 24, 12:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 12:17 PM
Unknown Object (File)
Thu, May 2, 10:19 AM
Unknown Object (File)
Tue, Apr 30, 8:58 AM
Unknown Object (File)
Wed, Apr 24, 2:39 PM
Unknown Object (File)
Wed, Apr 24, 2:38 PM
Unknown Object (File)
Wed, Apr 24, 2:35 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka added inline comments.
native/account/fullscreen-siwe-panel.react.js
90 ↗(On Diff #39453)

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.Fri, Apr 26, 6:27 AM
native/account/fullscreen-siwe-panel.react.js
90 ↗(On Diff #39453)

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 ↗(On Diff #39453)

Thank you!