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
F2149164: D6069.diff
Sun, Jun 30, 7:14 AM
Unknown Object (File)
Wed, Jun 19, 1:40 PM
Unknown Object (File)
Thu, Jun 13, 1:56 AM
Unknown Object (File)
Wed, Jun 12, 12:55 AM
Unknown Object (File)
May 30 2024, 8:06 PM
Unknown Object (File)
May 30 2024, 5:27 AM
Unknown Object (File)
May 29 2024, 6:28 AM
Unknown Object (File)
May 29 2024, 4:20 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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!