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
F2196200: D6340.diff
Fri, Jul 5, 12:04 PM
F2195572: D6340.id21182.diff
Fri, Jul 5, 10:45 AM
Unknown Object (File)
Thu, Jul 4, 9:53 AM
Unknown Object (File)
Wed, Jul 3, 3:32 AM
Unknown Object (File)
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
Subscribers
None

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul created this revision.

cut accident console.log

web/account/siwe.react.js
93–97

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

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

180

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

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