Page MenuHomePhabricator

[native] display alert if register via SIWE fail
ClosedPublic

Authored by kamil on Dec 28 2022, 6:24 AM.
Tags
None
Referenced Files
F3495732: D6069.diff
Thu, Dec 19, 9:46 AM
Unknown Object (File)
Wed, Nov 20, 6:17 PM
Unknown Object (File)
Wed, Nov 20, 6:17 PM
Unknown Object (File)
Wed, Nov 20, 6:17 PM
Unknown Object (File)
Wed, Nov 20, 6:17 PM
Unknown Object (File)
Wed, Nov 20, 6:17 PM
Unknown Object (File)
Nov 8 2024, 10:02 AM
Unknown Object (File)
Nov 7 2024, 5:55 AM
Subscribers

Details

Summary

Context in ENG-2543

Test Plan

Make sure keyserver will throw any error, register via SIWE, check if alert is visible and after click will navigate to login modal.

Diff Detail

Repository
rCOMM Comm
Branch
siwe-stuff
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Dec 28 2022, 6:39 AM

Please address comments before landing!!

native/account/siwe-panel.react.js
115 ↗(On Diff #20218)

Let's actually add throw e here so we still fail the request (we want SIWE_AUTH_FAILED action, not SIWE_AUTH_SUCCESS action)

117 ↗(On Diff #20218)

Nit: I would keep the nextMode destructuring here on this line, so it's localized with where it's used. Otherwise I found myself asking "why do we need nextMode?" where it was destructured

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

throw error, update destructing

native/account/siwe-panel.react.js
115 ↗(On Diff #20218)

thanks for catching this!