Page MenuHomePhabricator

[native] Display meaningful alert if ExistingEthereumAccount login fails due to expired nonce
ClosedPublic

Authored by ashoat on May 12 2024, 7:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 26, 6:56 AM
Unknown Object (File)
Tue, Jun 25, 4:32 PM
Unknown Object (File)
Tue, Jun 25, 4:19 PM
Unknown Object (File)
Tue, Jun 25, 3:50 AM
Unknown Object (File)
Sat, Jun 22, 1:54 PM
Unknown Object (File)
Wed, Jun 19, 9:48 AM
Unknown Object (File)
Wed, Jun 19, 8:42 AM
Unknown Object (File)
Wed, Jun 19, 8:41 AM
Subscribers

Details

Summary

This addresses part of ENG-7666, specifically for ExistingEthereumAccount. Doing this separately since it's the "easy part" and introduces some complicated navigation getParent() type parameterization that will be used in the next diff.

Would normally put @varun on the review here, but going to ask @inka instead because he is out.

Depends on D12008

Test Plan

I tested (or will test) this diff stack as follows:

  1. Be in a multi-keyserver environment, testing SIWE with iOS simulator
  2. Do a SIWE and then wait 2 minutes to let the nonce expire in the following screens:
    • FullscreenSIWEPanel for an account that doesn't exist yet when the new registration flow is disabled
    • FullscreenSIWEPanel for an account that doesn't exist yet when the new registration flow is enabled
    • FullscreenSIWEPanel for an account that does exist
    • New registration flow for an account that doesn't exist yet (RegistrationTerms)
    • New registration flow for an account that does exist (ExistingEthereumAccount)
  3. Make sure there are no duplicate Alerts, that in all cases an Alert is shown, and that the "back" action activates when the user confirms the Alert

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

In the test plan you say

the "back" action activates when the user confirms the Alert

But from the code it looks like the user is navigated to main login screen upon accepting the alert. Is that right?

But from the code it looks like the user is navigated to main login screen upon accepting the alert. Is that right?

Yes, that's right. The "back" action is different for each of these interfaces, but the intention is to move the user back to somewhere where they can try again.

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

Clear ethereumAccount from CachedUserSelections upon getting a nonce expiration error