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
Unknown Object (File)
Fri, Nov 22, 2:50 AM
Unknown Object (File)
Fri, Nov 22, 2:50 AM
Unknown Object (File)
Fri, Nov 22, 2:49 AM
Unknown Object (File)
Fri, Nov 22, 2:49 AM
Unknown Object (File)
Fri, Nov 22, 2:49 AM
Unknown Object (File)
Fri, Nov 22, 2:47 AM
Unknown Object (File)
Tue, Nov 19, 9:37 PM
Unknown Object (File)
Oct 22 2024, 3:18 AM
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