Page MenuHomePhabricator

[native] Handle errors with SIWE WebView
ClosedPublic

Authored by michal on Dec 29 2022, 4:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 8:23 PM
Unknown Object (File)
Mon, Dec 2, 3:32 PM
Unknown Object (File)
Thu, Nov 28, 11:15 AM
Unknown Object (File)
Fri, Nov 22, 4:53 AM
Unknown Object (File)
Fri, Nov 22, 4:53 AM
Unknown Object (File)
Fri, Nov 22, 4:53 AM
Unknown Object (File)
Fri, Nov 22, 4:53 AM
Unknown Object (File)
Fri, Nov 22, 4:52 AM
Subscribers

Details

Summary

More context in this comment: ENG-2544.
The current error message isn't great, so this diff replaces it with an alert.

image.png (1×692 px, 132 KB)

Test Plan

For testing I forced getSIWENonceCallFailed to be always true and checked if the alert is displayed and if it returns to the login screen when you press "OK".

Diff Detail

Repository
rCOMM Comm
Branch
michal/siwe-work
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added inline comments.
native/account/siwe-panel.react.js
227–236

Can we place this near something related, e.g. just below getSIWENonceCallFailed selector?

This revision is now accepted and ready to land.Dec 29 2022, 6:56 AM