Page MenuHomePhabricator

[web] Proactively fetch `siweNonce` once user has indicated they intend to SIWE
ClosedPublic

Authored by atul on Jan 22 2023, 8:00 PM.
Tags
None
Referenced Files
F2165468: D6340.diff
Tue, Jul 2, 2:01 AM
Unknown Object (File)
Thu, Jun 6, 12:37 PM
Unknown Object (File)
Thu, Jun 6, 12:36 PM
Unknown Object (File)
Thu, Jun 6, 9:45 AM
Unknown Object (File)
Thu, Jun 6, 9:15 AM
Unknown Object (File)
May 24 2024, 6:21 PM
Unknown Object (File)
Apr 7 2024, 4:17 PM
Unknown Object (File)
Apr 7 2024, 4:17 PM
Subscribers
None

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul created this revision.

cut accident console.log

web/account/siwe.react.js
93–97 ↗(On Diff #21183)

This could be inverted to reduce indentation, but I think it's a little easier to reason about as is. Open to changing it if that's what others would prefer.

atul published this revision for review.Jan 22 2023, 8:02 PM
ashoat requested changes to this revision.Jan 23 2023, 9:20 AM

Mainly requesting changes for the question about unsetting hasSIWEButtonBeenClicked

web/account/siwe.react.js
109–112 ↗(On Diff #21183)

We can replace all four of these inputs with a single boolean, which will reduce the number of times this effect executes needlessly

180 ↗(On Diff #21183)

What if the users backs out to the initial screen... won't we need to unset this value?

This revision now requires changes to proceed.Jan 23 2023, 9:20 AM
web/account/siwe.react.js
180 ↗(On Diff #21183)

We will once we have implemented the navigational structure in the designs provided by David, but there's no such thing as the user "back[ing] out to the initial screen" for now.

But yeah once we have that back button we'll want to call setHasSIWEButtonBeenClicked(false).

Please address inline comment before landing

This revision is now accepted and ready to land.Jan 23 2023, 9:57 AM
web/account/siwe.react.js
92–95 ↗(On Diff #21230)

Is this what you meant?

web/account/siwe.react.js
92–95 ↗(On Diff #21230)

Yup